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

Disassembly:
push 0xffffffffffffffff
push 0x85d710
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
push edi
mov dword [eax], 0
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], 0
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.004870b0
mov ecx, dword [esp + 0x80]
xor ebx, ebx
push ebx
push ebx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x90]
push 1
push ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], ecx
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 edx, [esp + 0x80]
lea edi, [esi + 0x38]
lea eax, [esp + 0x4c]
push edx
push eax
mov ecx, edi
mov dword [esp + 0x80], ebx
call fcn.00489b80
test eax, eax
jne 0x4876a4
mov eax, dword [edi + 4]
test eax, eax
jne 0x487670
mov ecx, dword [edi + 8]
push 1
push ecx
mov ecx, edi
call fcn.00489aa0
mov ecx, edi
call fcn.00489b10
mov edx, dword [esp + 0x80]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x80]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x80]
mov dword [ecx + edx*4], eax
mov edx, dword [esp + 0x40]
add eax, 0xc
mov ecx, eax
mov eax, ebx
mov dword [esp + 0x78], 0xffffffff
mov dword [ecx], ebp
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], ebx
lea ecx, [esp + 0x14]
call fcn.005f27f3
lea eax, [esp + 0x4c]
push 0x24
push eax
push 0x1f
mov ecx, esi
call fcn.00486ff0
test eax, eax
jne 0x48777f
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x10]
push 1
push edx
mov dword [ecx], 1
lea ecx, [esp + 0x28]
call fcn.005f27b7
mov ecx, dword [edi + 4]
mov dword [esp + 0x78], 1
test ecx, ecx
je 0x48774e
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 0x48774e
cmp dword [eax + 8], ebp
je 0x487732
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x487723
jmp 0x48774e
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 0x48774e
mov ecx, edi
call fcn.00489a50
lea ecx, [esp + 0x20]
mov dword [esp + 0x78], 0xffffffff
call fcn.005f27f3
test ebx, ebx
je 0x48776c
push ebx
call fcn.008325dd
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x48777b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4877e6
mov ecx, dword [esp + 0x88]
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
cmp esi, edi
jne 0x4877c0
mov eax, dword [esp + 0x84]
mov dword [eax], 2
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x4877d5
push eax
call fcn.008325dd
add esp, 4
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x4877e4
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 0xc