Function at 0x401830
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x464d94
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x480250]
xor eax, esp
mov dword [esp + 0x88], eax
push ebp
push edi
mov eax, dword [0x480250]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
or edx, 0xffffffff
mov ecx, vtable.CWin32Event.0
mov dword [esp + 0x10], esi
mov dword [esi + 0x9c], edx
mov dword [esi + 0x98], ecx
xor eax, eax
mov dword [esp + 0xa0], eax
mov dword [esi + 0xa4], edx
mov dword [esi + 0xa0], ecx
mov byte [esi + 0xc0], al
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], eax
push edi
push ebx
push str.http:___s:_i_ConnectionManagerCallbacks
mov byte [esp + 0xac], 3
lea ebp, [esi + 5]
push 0x40
push ebp
mov byte [esi + 4], al
mov dword [esi], edi
call fcn.0044e93c
add esp, 0x14
push ebp
push str.Creating_remote_callback_to:__s
call fcn.004167d0
push edi
push str.GlobalConnectionManagerCallbackEvent__i
lea eax, [esi + 0x45]
push 0x50
push eax
call fcn.0044e93c
push edi
push ebx
push str.GlobalDssConnectionManagerCallbackThreadEvent__s__i
lea ecx, [esp + 0x38]
push 0x80
push ecx
call fcn.0044e93c
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
add esp, 0x2c
lea edx, [esp + 0x14]
push edx
push 1
push 1
push 0
call ebp
test eax, eax
mov dword [esi + 0x9c], eax
jne 0x40193d
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateEvent_failed_with_error__i_on__s
call fcn.004167d0
add esp, 0xc
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x40194c
test eax, eax
jne 0x401960
lea ecx, [esp + 0x14]
push ecx
push str.Cannot_create_event__s
call fcn.004167d0
add esp, 8
jmp 0x401995
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
setne al
test al, al
jne 0x401995
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ResetEvent_failed_with_error__i
call fcn.004167d0
lea eax, [esp + 0x1c]
push eax
push str.Cannot_reset_event__s
call fcn.004167d0
add esp, 0x10
push edi
push ebx
push str.GlobalDssConnectionManagerCallbackThreadSendingEvent__s__i
lea ecx, [esp + 0x20]
push 0x80
push ecx
call fcn.0044e93c
add esp, 0x14
lea edx, [esp + 0x14]
push edx
push 1
push 1
push 0
call ebp
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xa4], eax
jne 0x4019e0
lea eax, [esp + 0x14]
push eax
call edi
push eax
push str.CreateEvent_failed_with_error__i_on__s
call fcn.004167d0
add esp, 0xc
mov eax, dword [esi + 0xa4]
cmp eax, 0xffffffff
je 0x4019ef
test eax, eax
jne 0x401a03
lea ecx, [esp + 0x14]
push ecx
push str.Cannot_create_event__s
call fcn.004167d0
add esp, 8
jmp 0x401a34
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
setne al
test al, al
jne 0x401a34
call edi
push eax
push str.ResetEvent_failed_with_error__i
call fcn.004167d0
lea eax, [esp + 0x1c]
push eax
push str.Cannot_reset_event__s
call fcn.004167d0
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push 0x402230
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xd4], eax
jne 0x401a65
call edi
push eax
push str.CreateThread_failed__error__i
call fcn.004167d0
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0044e7cc
add esp, 0x98
ret