Function at 0x401530
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x464e14
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x480250]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push edi
mov eax, dword [0x480250]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov edi, ecx
or ecx, 0xffffffff
mov eax, vtable.CWin32Event.0
mov dword [esp + 0x18], esi
mov dword [esi + 0x9c], ecx
mov dword [esi + 0x98], eax
xor ebx, ebx
mov dword [esp + 0xa8], ebx
mov dword [esi + 0xa4], ecx
mov dword [esi + 0xa0], eax
mov byte [esi + 0xc0], bl
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
push edi
push str.http:__127.0.0.1:_i_ConnectionManagerCallbacks
mov byte [esp + 0xb0], 3
lea ebp, [esi + 5]
push 0x40
push ebp
mov byte [esi + 4], 1
mov dword [esi], edi
call fcn.0044e93c
push ebp
push str.Creating_local_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 str.GlobalDssConnectionManagerCallbackThreadEvent__i
lea ecx, [esp + 0x4c]
push 0x80
push ecx
call fcn.0044e93c
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
add esp, 0x38
lea edx, [esp + 0x1c]
push edx
push 1
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x9c], eax
jne 0x401639
lea eax, [esp + 0x1c]
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 0x401648
cmp eax, ebx
jne 0x40165c
lea ecx, [esp + 0x1c]
push ecx
push str.Cannot_create_event__s
call fcn.004167d0
add esp, 8
jmp 0x401691
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
setne al
cmp al, bl
jne 0x401691
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ResetEvent_failed_with_error__i
call fcn.004167d0
lea eax, [esp + 0x24]
push eax
push str.Cannot_reset_event__s
call fcn.004167d0
add esp, 0x10
push edi
push str.GlobalDssConnectionManagerCallbackThreadSendingEvent__i
lea ecx, [esp + 0x24]
push 0x80
push ecx
call fcn.0044e93c
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
push 1
push 1
push ebx
call ebp
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xa4], eax
jne 0x4016da
lea eax, [esp + 0x1c]
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 0x4016e9
cmp eax, ebx
jne 0x4016fd
lea ecx, [esp + 0x1c]
push ecx
push str.Cannot_create_event__s
call fcn.004167d0
add esp, 8
jmp 0x40172e
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
setne al
cmp al, bl
jne 0x40172e
call edi
push eax
push str.ResetEvent_failed_with_error__i
call fcn.004167d0
lea eax, [esp + 0x24]
push eax
push str.Cannot_reset_event__s
call fcn.004167d0
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push ebx
push esi
push 0x402230
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0xd4], eax
jne 0x40175c
call edi
push eax
push str.CreateThread_failed__error__i
call fcn.004167d0
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0044e7cc
add esp, 0x9c
ret