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

Disassembly:
push 0xffffffffffffffff
push 0x480478
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x49f750]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49f750]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x42d1c3
xor al, al
jmp 0x42d3ca
mov eax, dword [edi + 0x18]
xorps xmm0, xmm0
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x38], eax
movlpd qword [esp + 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm0, xmm0
mov dword [esp + 0x2c], eax
push 0x4000
mov dword [esp + 0x34], eax
movupd xmmword [esp + 0x48], xmm0
mov byte [esp + 0x1b], 0
call fcn.0045d6c6
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x6c], 0
push 0x4000
push 0
push esi
call fcn.004653d0
xor ebp, ebp
add esp, 0xc
mov dword [esp + 0x1c], ebp
cmp dword [edi + 0x1c], ebp
jb 0x42d365
ja 0x42d240
cmp dword [edi + 0x18], ebp
jbe 0x42d365
nop
cmp byte [ebx + 0x9c], 0
jne 0x42d365
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x30]
push esi
call fcn.00438e60
cmp byte [ebx + 0x9c], 0
mov esi, eax
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0xb0], ecx
jne 0x42d365
cmp esi, 0xffffffff
je 0x42d365
test esi, esi
je 0x42d2cc
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x54]
push edx
push esi
push dword [esp + 0x20]
mov eax, dword [ecx]
mov dword [esp + 0x60], 0
mov eax, dword [eax]
call eax
test al, al
je 0x42d2b6
cmp dword [esp + 0x54], esi
je 0x42d2fa
mov byte [esp + 0x17], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xb0], eax
jmp 0x42d365
cmp byte [edi + 0x28], 0
jne 0x42d365
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x42d2ec
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx + 0x9c], 0
jne 0x42d365
inc ebp
mov dword [esp + 0x1c], ebp
cmp ebp, 0xf
ja 0x42d365
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x42d33f
mov ecx, dword [edi + 0x18]
mov eax, ecx
mov ebp, dword [edi + 0x1c]
and eax, ebp
cmp eax, 0xffffffff
je 0x42d31e
add ecx, dword [edi + 0x20]
adc ebp, dword [edi + 0x24]
mov edx, dword [esp + 0x3c]
xor eax, eax
add edx, dword [edi + 0x20]
mov esi, dword [esi]
adc eax, dword [edi + 0x24]
push eax
push edx
mov eax, dword [esi + 8]
push ebp
push ecx
mov ecx, dword [ebx + 0x98]
call eax
test al, al
je 0x42d360
mov eax, dword [esp + 0x40]
cmp eax, dword [edi + 0x1c]
ja 0x42d365
jb 0x42d353
mov ebp, dword [esp + 0x3c]
cmp ebp, dword [edi + 0x18]
jae 0x42d369
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x42d240
mov byte [esp + 0x17], 1
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42d37a
push eax
call fcn.0046222c
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [ebx + 0xb8], ebp
mov dword [ebx + 0xbc], eax
mov dword [esp + 0x58], 0
cmp ebp, dword [edi + 0x18]
jne 0x42d3a0
cmp eax, dword [edi + 0x1c]
jne 0x42d3a0
mov al, 1
jmp 0x42d3a2
xor al, al
cmp byte [esp + 0x17], 0
je 0x42d3b3
xor al, al
cmp byte [ebx + 0x9c], al
jne 0x42d3c2
cmp byte [edi + 0x28], 0
mov ecx, 1
movzx eax, al
cmovne eax, ecx
mov dword [esp + 0x6c], 0xffffffff
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00461397
add esp, 0x5c
ret 0xc