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

Disassembly:
push 0xffffffffffffffff
push 0x4a5709
mov eax, dword fs:[0]
push eax
sub esp, 0x8d8
mov eax, dword [0x4c76b8]
xor eax, esp
mov dword [esp + 0x8d4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c76b8]
xor eax, esp
push eax
lea eax, [esp + 0x8ec]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x24]
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], bl
call fcn.004134f0
cmp byte [esi + 4], bl
mov dword [esp + 0x8f4], ebx
je 0x42f5b8
cmp byte [esp + 0x18], bl
mov dword [esp + 0x8f4], 0xffffffff
je 0x42f5b1
mov eax, dword [esp + 0x14]
add dword [eax], 0xffffffff
jne 0x42f5b1
xor ecx, ecx
lea edx, [eax + 4]
xchg dword [edx], ecx
lea ecx, [eax + 8]
mov eax, SysReAllocString
mov edx, ecx
lock xadd dword [edx], eax
test eax, 0x40000000
jne 0x42f5b1
cmp eax, 0x80000000
jle 0x42f5b1
mov eax, ecx
lock bts dword [eax], 0x1e
jb 0x42f5b1
call fcn.00412ee0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
jmp 0x42f8b6
cmp dword [esi + 0x20], ebx
mov byte [esi + 4], 1
jne 0x42f609
push 4
call fcn.00471a5e
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x42f5e5
lea eax, [esi + 0xc]
mov dword [edi], eax
mov eax, dword [eax + 8]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42f5e7
xor edi, edi
cmp edi, ebx
mov dword [esi + 0x20], edi
jne 0x42f609
lea ecx, [esp + 0x14]
mov dword [esp + 0x8f4], 0xffffffff
call fcn.004134a0
xor al, al
jmp 0x42f8b6
mov eax, dword [esi + 0x14]
push ebx
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 4
call fcn.00471a5e
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x8f4], 1
je 0x42f645
push ebx
lea ecx, [esi + 0xc]
push ecx
mov edx, 0x41e880
push edx
mov ecx, eax
call fcn.0041d370
jmp 0x42f647
xor eax, eax
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0x8f8], bl
call fcn.00418e50
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [esp + 0x74]
push ebx
push ecx
mov dword [esi + 8], eax
call fcn.0043c9c0
add esp, 8
mov eax, dword [esp + 0x78]
mov edi, 8
cmp dword [esp + 0x8c], edi
mov byte [esp + 0x8f4], 2
jae 0x42f68c
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x94]
call fcn.00437ea0
lea edx, [esp + 0x8e0]
push edx
lea ecx, [esp + 0x94]
mov byte [esp + 0x8f8], 3
mov word [esp + 0x8e4], bx
mov dword [esp + 0x8e6], ebx
mov word [esp + 0x8ea], bx
call fcn.00437ab0
movzx eax, word [esp + 0x8e4]
push ebx
add eax, 0x1388
mov ebp, 7
push 0x4b09a8
lea ecx, [esp + 0x28]
mov dword [esi + 0xa20], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.00409b30
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x8fc], 4
call fcn.0043c2c0
add esp, 8
cmp dword [esp + 0x38], edi
mov byte [esp + 0x8f4], 6
jb 0x42f735
mov eax, dword [esp + 0x24]
push eax
call fcn.00471a59
add esp, 4
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.0043b690
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x900], 7
call fcn.00409a40
cmp dword [esp + 0x54], edi
mov byte [esp + 0x8f4], 6
jb 0x42f784
mov eax, dword [esp + 0x40]
push eax
call fcn.00471a59
add esp, 4
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0043b690
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x900], 8
call fcn.00409a40
cmp dword [esp + 0x54], edi
mov byte [esp + 0x8f4], 6
jb 0x42f7c9
mov eax, dword [esp + 0x40]
push eax
call fcn.00471a59
add esp, 4
cmp dword [esp + 0x70], edi
mov eax, dword [esp + 0x5c]
jae 0x42f7d7
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
push ecx
push ebx
push eax
lea ecx, [esp + 0x80]
call fcn.00414290
cmp eax, 0xffffffff
jne 0x42f7f5
mov dword [esi + 0xa48], ebx
mov ecx, dword [esi + 0x14]
mov eax, 0x42f110
push esi
push eax
call fcn.004271c0
push 0x218
call fcn.00471a5e
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x8f4], 9
je 0x42f82a
mov ecx, eax
call fcn.0046c8e0
jmp 0x42f82c
xor eax, eax
push ebx
push ebx
mov ecx, eax
mov byte [esp + 0x8fc], 6
mov dword [esi + 0xa6c], eax
call fcn.00422000
cmp dword [esp + 0x70], edi
jb 0x42f856
mov edx, dword [esp + 0x5c]
push edx
call fcn.00471a59
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov byte [esp + 0x8f4], 2
call fcn.00437b20
cmp dword [esp + 0x8c], edi
jb 0x42f88d
mov eax, dword [esp + 0x78]
push eax
call fcn.00471a59
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
mov dword [esp + 0x8f4], 0xffffffff
call fcn.004134a0
mov al, 1
mov ecx, dword [esp + 0x8ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8d4]
xor ecx, esp
call fcn.00471a20
add esp, 0x8e4
ret