Function at 0x487d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x85d780
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [esp + 0x74]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [eax], 0
mov ecx, dword [esp + 0x84]
push edi
xor eax, eax
lea edi, [esp + 0x50]
mov dword [ecx], 0
mov ecx, 8
mov dword [esp + 0x4c], 0
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.004870b0
mov edx, dword [esp + 0x80]
xor ebx, ebx
push ebx
push ebx
mov ecx, dword [edx]
mov edx, dword [esp + 0x94]
push 1
push ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x50], ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x40], eax
lea eax, [esi + 0x18]
push 1
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.005f27b7
lea eax, [esp + 0x80]
lea ecx, [esp + 0x4c]
lea edi, [esi + 0x38]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x80], ebx
call fcn.00489b80
test eax, eax
jne 0x487e91
mov eax, dword [edi + 4]
test eax, eax
jne 0x487e5d
mov edx, dword [edi + 8]
push 1
push edx
mov ecx, edi
call fcn.00489aa0
mov ecx, edi
call fcn.00489b10
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], edx
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x80]
mov ecx, dword [ecx + edx*4]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x80]
mov dword [edx + ecx*4], eax
add eax, 0xc
lea ecx, [esp + 0x14]
mov edx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], 0xffffffff
mov dword [edx], ebp
mov dword [edx + 4], eax
mov eax, ebx
mov dword [edx + 8], eax
mov dword [edx + 0xc], ebx
call fcn.005f27f3
lea ecx, [esp + 0x4c]
push 0x24
push ecx
push 0x22
mov ecx, esi
call fcn.00486ff0
test eax, eax
jne 0x487f6c
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x28]
mov dword [edx], 1
call fcn.005f27b7
mov ecx, dword [edi + 4]
mov dword [esp + 0x78], 1
test ecx, ecx
je 0x487f3b
mov eax, ebp
xor edx, edx
shr eax, 4
div dword [edi + 8]
mov eax, dword [ecx + edx*4]
test eax, eax
lea ecx, [ecx + edx*4]
je 0x487f3b
cmp dword [eax + 8], ebp
je 0x487f1f
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x487f10
jmp 0x487f3b
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [edi + 0x10]
mov dword [eax], ecx
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0xc]
dec eax
mov dword [edi + 0xc], eax
jne 0x487f3b
mov ecx, edi
call fcn.00489a50
lea ecx, [esp + 0x20]
mov dword [esp + 0x78], 0xffffffff
call fcn.005f27f3
test ebx, ebx
je 0x487f59
push ebx
call fcn.008325dd
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x487f68
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x487fe1
mov ecx, dword [esp + 0x8c]
xor edx, edx
mov dword [esp + 0x30], edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], edx
push eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x44]
push ecx
xor edi, edi
push ebp
push edx
mov ecx, esi
mov dword [esp + 0x3c], edi
call fcn.004870e0
mov esi, eax
mov eax, dword [esp + 0x38]
cmp esi, edi
je 0x487fb2
mov edx, dword [esp + 0x84]
mov ecx, dword [eax + 0x18]
mov dword [edx], ecx
jmp 0x487fbf
mov ecx, dword [esp + 0x88]
mov dword [ecx], 2
cmp eax, edi
je 0x487fd0
push eax
call fcn.008325dd
add esp, 4
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x487fdf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x10