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

Disassembly:
sub esp, 0x64c
push ebx
xor ebx, ebx
push ebp
push esi
mov esi, dword [esp + 0x65c]
push edi
mov edi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], ebx
test esi, esi
je 0x42f303
jle 0x42f344
cmp esi, 2
jle 0x42f2d5
cmp esi, 3
jne 0x42f344
mov eax, dword [esp + 0x664]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00427d3f
jmp 0x42f344
mov eax, dword [edi + 4]
cmp esi, 2
mov edx, dword [eax + 0x19c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
push eax
push ecx
mov dword [esp + 0x68], edx
sete byte [esp + 0x70]
mov dword [esp + 0x74], ebx
call fcn.00411fb7
jmp 0x42f344
lea ecx, [esp + 0x88]
call fcn.0041fb8c
push 0x14
lea edi, [esp + 0x1d3]
pop ebp
push edi
lea ecx, [esp + 0x20]
call fcn.00427e8b
add edi, 0x2d
dec ebp
jne 0x42f319
push 0x5cc
lea eax, [esp + 0x8c]
push ebx
push eax
call dword [0xfe8014f8]
mov edi, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [edi + 4]
push 1
lea eax, [esp + 0x20]
push eax
call fcn.0042642b
cmp dword [esp + 0x20], ebx
jne 0x42f362
mov byte [esp + 0x16], bl
jmp 0x42f689
mov ebp, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ebp
call fcn.00428298
mov dword [esp + 0x4c], eax
cmp esi, 3
jne 0x42f38a
push ecx
push ebx
push 0x14
pop edx
lea ecx, [esp + 0x7c]
call fcn.00416617
jmp 0x42f39b
push 0x14
push eax
lea eax, [esp + 0x7c]
push eax
call dword [0xfe8014f4]
add esp, 0xc
mov esi, dword [esp + 0x2c]
push 4
cmp esi, 1
pop ecx
cmovl ecx, dword [esp + 0x20]
cmp dword [esp + 0x20], 0
mov byte [esp + 0x16], bl
mov dword [esp + 0x34], ecx
mov dword [esp + 0x50], ebx
jle 0x42f615
mov eax, ebp
imul eax, eax, 0x14
mov dword [esp + 0x58], eax
mov esi, ebx
mov dword [esp + 0x54], ebx
test ecx, ecx
jle 0x42f611
mov ecx, dword [edi + 4]
call fcn.00426582
test al, al
je 0x42f611
mov edi, dword [esp + 0x1c]
add edi, esi
mov dword [esp + 0x38], edi
mov esi, ebx
test ebp, ebp
je 0x42f42c
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
lea eax, [edi + 8]
mov dword [esp + 0x40], eax
mov edi, eax
push 0x14
push ebp
push edi
call dword [0xfe8014fc]
add esp, 0xc
test eax, eax
je 0x42f422
inc esi
add ebp, 0x14
cmp esi, ebx
jb 0x42f409
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x18]
xor ebx, ebx
cmp esi, ebp
jne 0x42f5e6
cmp ebp, 0x96
jae 0x42f60d
mov esi, dword [esp + 0x58]
lea ecx, [esp + 0x30]
lea edx, [esi + 0x14]
call fcn.0042b2e8
test al, al
je 0x42f476
push 0x14
lea eax, [edi + 8]
push eax
mov eax, dword [esp + 0x38]
add eax, esi
push eax
call dword [0xfe8014f4]
add esp, 0xc
inc ebp
add esi, 0x14
mov dword [esp + 0x18], ebp
mov dword [esp + 0x58], esi
lea esi, [edi + 8]
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], esi
call fcn.00428124
test eax, eax
jns 0x42f5e6
mov ecx, esi
call fcn.004282dc
test al, al
jne 0x42f5e6
push edi
lea ecx, [esp + 0x2c]
call fcn.00427cb6
test al, al
jne 0x42f5e6
or ebp, 0xffffffff
cmp dword [esp + 0x2c], 0x32
jl 0x42f4d2
push dword [esp + 0x4c]
lea ecx, [esp + 0x2c]
push esi
call fcn.00428083
mov ebp, eax
test ebp, ebp
js 0x42f5e2
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x180]
call fcn.00416593
xor edx, edx
mov ecx, 0xfa0
div ecx
lea eax, [esp + 0x44]
add edx, 0x1388
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.0040a327
cmp eax, 1
jl 0x42f5e2
dec dword [esp + 0x34]
call fcn.0040ac55
xor ecx, ecx
test al, al
mov eax, dword [esp + 0x24]
setne cl
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x190]
mov dword [esp + 0x38], eax
lea esi, [eax + 0x28]
push esi
mov dword [esp + 0x44], ecx
call dword [0xfe8012c8]
mov eax, dword [esp + 0x38]
cmp dword [eax + 8], ebx
jbe 0x42f54d
mov byte [esp + 0x17], 1
cmp dword [eax + 0x18], ebx
ja 0x42f551
mov byte [esp + 0x17], bl
push esi
call dword [0xfe8012cc]
cmp byte [esp + 0x17], 0
mov ecx, dword [esp + 0x40]
sete al
mov byte [esp + 0x70], al
test ecx, ecx
jne 0x42f570
test al, al
je 0x42f58d
mov eax, dword [esp + 0x24]
push 0x1388
push ecx
push dword [esp + 0x78]
mov ecx, dword [eax + 4]
push edi
mov ecx, dword [ecx + 0x180]
call fcn.0040a278
test ebp, ebp
jns 0x42f59f
push 1
push edi
lea ecx, [esp + 0x30]
call fcn.00427e30
jmp 0x42f5ab
push ecx
push edi
push ebp
lea ecx, [esp + 0x34]
call fcn.00427f2b
test al, al
je 0x42f5e2
mov esi, dword [esp + 0x664]
mov byte [esp + 0x16], 1
test esi, esi
je 0x42f5ce
push dword [esp + 0x5c]
mov ecx, esi
call fcn.00428124
test eax, eax
jns 0x42f5e2
lea ecx, [esp + 0x28]
call fcn.00427bd4
inc dword [esp + 0x3c]
mov dword [esp + 0x664], ebx
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x24]
inc edx
add esi, 0x38
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], esi
cmp edx, dword [esp + 0x20]
jge 0x42f611
mov ecx, dword [esp + 0x34]
jmp 0x42f3d0
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
call fcn.0042b3a3
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
xor ecx, ecx
mov dword [esp + 0x20], eax
call fcn.0042b3a3
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
push eax
push 0xfe827d1b
push 0x38
push dword [esp + 0x2c]
mov dword [esp + 0x54], ebx
push dword [esp + 0x2c]
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x78], 1
call fcn.0043bc90
add esp, 0x14
cmp byte [esp + 0x16], 1
je 0x42f39f
mov ecx, dword [esp + 0x30]
call fcn.0042b3a3
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
test eax, eax
setg byte [esp + 0x16]
xor ecx, ecx
call fcn.0042b3a3
mov ecx, dword [esp + 0x1c]
call fcn.0042b3a3
mov ecx, ebx
call fcn.0042b3a3
mov al, byte [esp + 0x16]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64c
ret 8