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

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x64]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
mov eax, dword [esi + 0x80]
push edi
mov edi, dword [esi + 0x20]
add ecx, 0xfffffffb
mov dword [esp + 0x54], edi
cmp ecx, 3
ja case.default.0x42ff94
jmp dword [ecx*4 + 0x4303bc]
push eax
mov eax, dword [esp + 0x6c]
call fcn.00429a50
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x430000
push eax
mov eax, dword [esp + 0x6c]
call fcn.00439da0
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x430000
push eax
mov eax, dword [esp + 0x6c]
call fcn.0040d070
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x430000
push eax
mov eax, dword [esp + 0x6c]
call fcn.0040d0a0
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x430000
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx]
imul edx, edx, 0x9e3779b1
mov ecx, 0x20
sub ecx, eax
shr edx, cl
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
mov eax, dword [edi + edx*4]
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x68]
sub edi, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x78]
mov edx, 1
shl edx, cl
mov ecx, dword [esi + 0x10]
mov ebx, edi
sub ebx, ecx
mov dword [esp + 0x44], edi
cmp ebx, edx
jbe 0x430033
mov ebx, edi
sub ebx, edx
jmp 0x430035
mov ebx, ecx
cmp dword [esi + 0x14], 0
je 0x430043
mov ebx, ecx
mov dword [esp + 0x2c], ebx
jmp 0x430047
mov dword [esp + 0x2c], ebx
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x28]
dec ecx
mov ebp, 1
shl ebp, cl
mov dword [esp + 0x1c], edx
dec ebp
mov dword [esp + 0x40], ebp
cmp ebp, edi
jb 0x43006c
mov dword [esp + 0x20], 0
jmp 0x430078
sub edi, ebp
mov dword [esp + 0x20], edi
cmp edi, ebx
jbe 0x430078
mov ebx, edi
mov ecx, ebp
and ecx, eax
lea edx, [edx + ecx*8]
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 0x84]
mov esi, 1
shl esi, cl
xor ecx, ecx
lea edi, [edx + 4]
mov dword [esp + 0x10], esi
cmp eax, ebx
jbe 0x4300da
lea ecx, [ecx]
cmp dword [edi], 1
jne 0x4300c5
cmp esi, 1
jbe 0x4300c5
mov dword [edi], ecx
mov edi, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [edx]
mov edx, ebp
and edx, eax
lea edx, [edi + edx*8]
dec esi
lea edi, [edx + 4]
cmp eax, ebx
ja 0x4300a0
jmp 0x4300da
cmp eax, ebx
jbe 0x4300da
cmp dword [edi], 1
jne 0x4300da
mov dword [edi], 0
mov dword [edx], 0
xor edi, edi
mov eax, ecx
cmp ecx, edi
je 0x43010e
mov edx, dword [esp + 0x1c]
mov ecx, ebp
and ecx, eax
mov edi, dword [edx + ecx*8 + 4]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x6c]
push ecx
push ebx
push esi
push edx
push eax
mov eax, dword [esp + 0x78]
call fcn.0042fab0
add esp, 0x14
inc esi
mov eax, edi
test edi, edi
jne 0x4300e2
mov eax, dword [esp + 0x64]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
lea eax, [ecx + ebx]
mov dword [esp + 0x38], eax
lea eax, [ecx + edx]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x44]
mov edx, ebp
and edx, eax
lea edx, [esi + edx*8]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x28], edx
add edx, 4
cmp dword [esp + 0x10], 0
mov dword [esp + 0x24], edx
lea edx, [eax + 9]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x18], edi
mov edi, dword [esi + edx*4]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x3c], ecx
mov dword [esi + edx*4], eax
jne 0x4301e8
dec dword [esp + 0x10]
cmp dword [esp + 0x78], 2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword [ecx], 0
mov dword [edx], 0
pop ebx
jne 0x4301c8
mov eax, dword [esp]
test eax, eax
je 0x4301c8
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push eax
mov eax, dword [esp + 0x78]
push ecx
call fcn.0042fcf0
add esp, 0x18
mov dword [esp + 8], eax
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
add edx, 0xfffffff8
mov dword [eax + 0x18], edx
mov eax, dword [esp + 8]
add esp, 0x50
ret
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x58]
mov edx, 1
sub dword [esp + 0x10], edx
cmp edi, dword [esp + 0x2c]
jbe 0x430178
mov esi, dword [esp + 0x1c]
mov eax, ebp
and eax, edi
lea eax, [esi + eax*8]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x50]
cmp esi, eax
jb 0x430214
mov esi, eax
cmp dword [esp + 0x78], edx
jne 0x430290
lea edx, [esi + edi]
cmp edx, ecx
jae 0x430290
mov eax, dword [esp + 0x68]
lea ebp, [ebx + edi]
lea ecx, [esi + eax]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], ebp
add ebp, esi
mov edx, ecx
sub edx, ebp
add eax, edx
mov edx, dword [esp + 0x6c]
cmp eax, edx
jb 0x430245
mov eax, edx
mov ebx, eax
mov edx, ebp
call fcn.00438be0
lea ecx, [eax + ebp]
mov dword [esp + 0x48], eax
cmp ecx, dword [esp + 0x38]
jne 0x430275
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
lea ecx, [esi + edx]
mov edx, dword [esp + 0x5c]
add ecx, eax
call fcn.00438be0
add eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x40]
add esi, eax
lea eax, [esi + edi]
cmp eax, dword [esp + 0x3c]
jb 0x4302b0
mov ecx, dword [esp + 0x30]
add ecx, edi
mov dword [esp + 0x14], ecx
jmp 0x4302b0
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x6c]
lea eax, [edx + edi]
mov dword [esp + 0x14], eax
lea edx, [eax + esi]
mov eax, dword [esp + 0x68]
lea ecx, [esi + eax]
call fcn.00438be0
add esi, eax
cmp esi, dword [esp + 0x18]
jbe 0x430333
mov ecx, dword [esp + 0x34]
sub ecx, edi
cmp esi, ecx
jbe 0x4302c7
lea edx, [esi + edi]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x44]
sub edx, edi
xor ebx, ebx
lea eax, [edx + 1]
bsr ecx, eax
setne al
movzx eax, al
neg eax
sbb eax, eax
and eax, ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx]
inc ecx
bsr ecx, ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x48], ecx
setne cl
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, dword [esp + 0x48]
sub eax, ecx
mov ecx, esi
sub ecx, dword [esp + 0x18]
add ecx, ecx
add ecx, ecx
cmp ecx, eax
jle 0x430326
mov eax, dword [esp + 0x70]
add edx, 2
mov dword [esp + 0x18], esi
mov dword [eax], edx
mov ecx, dword [esp + 0x68]
lea edx, [esi + ecx]
cmp edx, dword [esp + 0x6c]
je 0x43038a
mov eax, dword [esp + 0x14]
mov cl, byte [eax + esi]
mov edx, dword [esp + 0x68]
cmp cl, byte [esi + edx]
jae 0x430360
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov dword [esp + 0x4c], esi
cmp edi, dword [esp + 0x20]
jbe 0x4303a2
mov eax, dword [esp + 0x54]
add eax, 4
mov dword [esp + 0x28], eax
jmp 0x430378
mov ecx, dword [esp + 0x24]
mov dword [ecx], edi
mov dword [esp + 0x50], esi
cmp edi, dword [esp + 0x20]
jbe 0x4303af
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x10], 0
mov edi, dword [eax]
jne 0x4301e0
jmp 0x430174
cmp dword [esp + 0x78], 2
jne 0x430178
mov dword [esp + 0x10], 0
jmp 0x430178
lea edx, [esp + 0x5c]
mov dword [esp + 0x28], edx
jmp 0x430178
lea eax, [esp + 0x5c]
mov dword [esp + 0x24], eax
jmp 0x430178