Function at 0x487e40
Capabilities:
Create thread

Disassembly:
sub esp, 0x54
push ebx
push esi
mov esi, dword [esp + 0x60]
xor ebx, ebx
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 8], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], edx
mov ax, word [eax + 0x10]
mov word [esp + 0x18], ax
mov al, byte [0x4ebe288]
cmp al, 1
jne 0x487e95
mov eax, dword [0x4ebe284]
cmp eax, ebx
je 0x487e8f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [0x4ebe284], ebx
mov byte [0x4ebe288], bl
xor edx, edx
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], edx
push ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 0x14
mov dword [esp + 0x28], edx
mov dword [esp + 0x28], eax
mov eax, dword [0x4ebe260]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x6c]
push edx
lea edx, [esp + 0x24]
mov dword [esp + 0x28], 0x101e0
mov dword [esp + 0x34], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x48804b
mov eax, dword [0x4cb8328]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x64]
push eax
push ecx
push edx
call fcn.004873b0
add esp, 0xc
test eax, eax
je 0x48804b
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
push ebx
mov dword [esp + 0x38], eax
lea edx, [ecx + ecx]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
lea edx, [esp + 0x34]
mov dword [esp + 0x44], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [0x4ebe260]
mov dword [esp + 0x34], 0x14
mov dword [esp + 0x38], 0x181e0
mov ecx, dword [eax]
push 0x4cb7c0c
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x487f79
mov eax, dword [0x4cb8328]
cmp eax, ebx
je 0x48804b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [0x4cb8328], ebx
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [0x4cb7c0c]
push 0x4ebe284
push 0x49c4e0
push eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
je 0x487fa3
mov eax, dword [0x4cb8328]
cmp eax, ebx
je 0x488036
jmp 0x48802a
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push ebx
push ebx
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [0x4cb8218], eax
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [0x4cb821c], eax
call esi
mov ecx, dword [0x4cb8218]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
mov ecx, dword [0x4cb821c]
mov dword [0x4cb8220], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], eax
mov eax, dword [0x4ebe284]
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], 0xffffffff
mov edx, dword [eax]
push ecx
push 3
push eax
call dword [edx + 0xc]
test eax, eax
je 0x488053
mov eax, dword [0x4ebe284]
cmp eax, ebx
je 0x488021
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [0x4ebe284], ebx
mov eax, dword [0x4cb8328]
cmp eax, ebx
je 0x488036
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [0x4cb8328], ebx
mov eax, dword [0x4cb7c0c]
cmp eax, ebx
je 0x48804b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [0x4cb7c0c], ebx
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret
mov byte [0x4ebe288], 1
mov dword [0x4ebe2a4], ebx
mov eax, dword [0x4cb7c0c]
mov ecx, dword [0x4cb6e34]
mov edx, dword [esp + 0x64]
push 0x4cbc828
push ebx
push 0x4cb8330
mov dword [0x4cb8330], eax
mov eax, dword [esp + 0x1c]
push 0x487a90
push ebx
push ebx
mov dword [0x4cb8334], 0x4cb8218
mov dword [0x4cb8338], 3
mov dword [0x4cb833c], 2
mov dword [0x4cb8340], ecx
mov dword [0x4cb8344], edx
mov dword [0x4cb8348], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x4cbc350], eax
jne 0x4880d0
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [0x4ebe2a4]
cmp eax, ebx
je 0x4880d0
pop esi
mov eax, 1
pop ebx
add esp, 0x54
ret