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

Disassembly:
sub esp, 0x6c
push ebx
mov ebx, dword [esp + 0x7c]
cmp ebx, 1
jl 0x406ab5
lea eax, [eax + eax*2]
mov ecx, eax
and ecx, 0x80000003
mov dword [esp + 0x54], eax
jns 0x4063e7
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x406406
lea esp, [esp]
inc eax
mov edx, eax
and edx, 0x80000003
jns 0x406400
dec edx
or edx, 0xfffffffc
inc edx
jne 0x4063f0
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x80]
push ebp
mov ebp, dword [eax + 0xc]
sub ebp, dword [eax + 4]
push esi
push edi
mov edi, dword [eax + 8]
sub edi, dword [eax]
mov esi, ebp
imul esi, edi
lea eax, [ebx + ebx + 1]
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x34], eax
call fcn.00433c20
push esi
mov dword [esp + 0x54], eax
call fcn.00433c20
push esi
mov dword [esp + 0x5c], eax
call fcn.00433c20
add esp, 0xc
cmp edi, ebp
mov dword [esp + 0x54], eax
jg 0x406457
mov edi, ebp
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00433c20
mov esi, dword [esp + 0x34]
inc esi
sar esi, 1
imul esi, esi
mov dword [esp + 0x5c], eax
mov eax, esi
shl eax, 8
push eax
call fcn.00433c20
xor ecx, ecx
add esp, 8
mov dword [esp + 0x48], eax
xor ebp, ebp
sub eax, esi
mov dword [esp + 0x6c], ecx
mov edi, esi
mov dword [esp + 0x70], eax
nop
cmp ecx, edi
jge 0x4064bd
mov edx, edi
sub edx, ecx
push edx
add eax, edi
push ebp
push eax
call fcn.00437610
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
add esp, 0xc
inc ebp
add ecx, esi
add edi, esi
cmp ebp, 0x100
mov dword [esp + 0x6c], ecx
jl 0x4064a0
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00433c20
mov ebp, dword [esp + 0x34]
xor edi, edi
add esp, 4
xor esi, esi
cmp ebp, edi
mov dword [esp + 0x34], eax
jle 0x406516
jmp 0x406500
push 0xc
call fcn.00433c20
mov ecx, dword [esp + 0x38]
mov dword [ecx + esi*4], eax
inc esi
add esp, 4
cmp esi, ebp
jl 0x406500
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x84]
sub eax, dword [ecx + 0xc]
mov ecx, dword [ecx]
imul eax, dword [esp + 0x60]
add eax, dword [esp + 0x80]
lea ecx, [ecx + ecx*2]
add ecx, eax
cmp dword [esp + 0x44], edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x40], edi
jle 0x4067a8
mov ebp, ebx
neg ebp
mov dword [esp + 0x6c], ebp
jmp 0x406564
mov ebp, dword [esp + 0x6c]
xor esi, esi
cmp ebp, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x38], edi
jg 0x40662e
mov edi, edi
mov eax, dword [esp + 0x2c]
xor ecx, ecx
cmp ebp, edi
setle cl
dec eax
dec ecx
and ecx, ebp
cmp eax, ecx
jge 0x4065a5
mov ecx, eax
mov edx, dword [esp + 0x3c]
lea eax, [edx + ecx*2]
mov edx, dword [esp + 0x34]
add eax, ecx
lea ecx, [ebx + ebp]
mov ecx, dword [edx + ecx*4]
movzx edx, byte [eax]
mov dword [ecx], edx
movzx edx, byte [eax + 1]
mov dword [ecx + 4], edx
movzx eax, byte [eax + 2]
mov dword [esp + 0x70], eax
mov dword [ecx + 8], eax
mov eax, ebp
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x68], edx
lea eax, [ebx + 1]
sub eax, edi
imul edx, eax
add dword [esp + 0x10], edx
mov edx, ecx
imul edx, eax
add dword [esp + 0x14], edx
mov edx, dword [esp + 0x70]
mov edi, edx
imul edi, eax
add dword [esp + 0x20], edi
mov eax, dword [esp + 0x68]
xor edi, edi
cmp ebp, edi
jle 0x40661b
add dword [esp + 0x38], eax
add dword [esp + 0x5c], ecx
add dword [esp + 0x24], edx
jmp 0x406625
add dword [esp + 0x18], eax
add esi, ecx
add dword [esp + 0x1c], edx
inc ebp
cmp ebp, ebx
jle 0x406590
xor ebp, ebp
cmp dword [esp + 0x2c], edi
mov ecx, ebx
jle 0x406789
mov edx, dword [esp + 0x64]
lea eax, [ebx + 1]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x50]
lea edi, [edx + eax]
mov edx, dword [esp + 0x4c]
sub edx, eax
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x54]
sub edx, eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x64], eax
mov dword [esp + 0x74], edx
lea ebx, [ebx]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
movzx edx, byte [edx + eax]
mov eax, dword [esp + 0x70]
mov byte [eax + edi], dl
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
movzx edx, byte [edx + eax]
mov byte [edi], dl
mov edx, dword [esp + 0x20]
mov al, byte [edx + eax]
mov edx, dword [esp + 0x74]
mov byte [edx + edi], al
mov eax, dword [esp + 0x18]
sub dword [esp + 0x10], eax
mov edx, dword [esp + 0x1c]
sub dword [esp + 0x20], edx
inc ebx
lea eax, [ecx + ebx]
cdq
idiv dword [esp + 0x30]
mov eax, dword [esp + 0x34]
sub dword [esp + 0x14], esi
mov edx, dword [eax + edx*4]
mov eax, dword [edx]
sub dword [esp + 0x18], eax
sub esi, dword [edx + 4]
mov eax, dword [edx + 8]
sub dword [esp + 0x1c], eax
cmp dword [esp + 0x40], 0
mov dword [esp + 0x28], esi
jne 0x4066f4
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x68]
dec eax
cmp esi, eax
jge 0x4066ed
mov eax, esi
mov esi, dword [esp + 0x58]
mov dword [esi + ebp*4], eax
mov eax, dword [esp + 0x58]
mov esi, dword [eax + ebp*4]
mov eax, dword [esp + 0x3c]
lea eax, [eax + esi*2]
add eax, esi
movzx esi, byte [eax]
add dword [esp + 0x38], esi
mov dword [edx], esi
movzx esi, byte [eax + 1]
mov dword [edx + 4], esi
movzx eax, byte [eax + 2]
mov dword [edx + 8], eax
mov edx, dword [esp + 0x24]
add edx, eax
mov eax, dword [esp + 0x38]
add dword [esp + 0x10], eax
add dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
lea eax, [ecx + 1]
cdq
idiv dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
inc dword [esp + 0x68]
add ebx, esi
add dword [esp + 0x14], ebx
mov esi, dword [esp + 0x28]
inc ebp
inc edi
mov ecx, edx
mov edx, dword [esp + 0x34]
mov eax, dword [edx + ecx*4]
mov edx, dword [eax]
add dword [esp + 0x18], edx
sub dword [esp + 0x38], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
add dword [esp + 0x1c], eax
sub dword [esp + 0x24], eax
sub ebx, edx
add esi, edx
cmp ebp, dword [esp + 0x2c]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x88]
jl 0x406670
xor edi, edi
mov eax, dword [esp + 0x60]
add dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
inc eax
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x40], eax
jl 0x406560
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp eax, edi
mov dword [esp + 0x38], edi
jle 0x406a55
imul eax, ebx
neg eax
mov edx, ebx
neg edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], edx
jmp 0x4067d4
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov edi, eax
mov eax, edx
xor esi, esi
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x68], edi
mov dword [esp + 0x5c], eax
jg 0x4068ea
mov ebp, dword [esp + 0x34]
lea edx, [eax + ebx]
lea edx, [ebp + edx*4]
mov dword [esp + 0x64], edx
jmp 0x406824
mov edi, dword [esp + 0x68]
xor edx, edx
test edi, edi
setl dl
inc ebx
dec edx
and edx, edi
add edx, dword [esp + 0x38]
mov edi, edx
mov edx, dword [esp + 0x64]
mov ebp, dword [edx]
mov edx, dword [esp + 0x4c]
movzx edx, byte [edi + edx]
mov dword [ebp], edx
mov edx, dword [esp + 0x50]
movzx edx, byte [edi + edx]
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x54]
movzx edx, byte [edi + edx]
mov dword [ebp + 8], edx
cdq
xor eax, edx
sub eax, edx
mov edx, eax
mov eax, ebx
sub eax, edx
mov edx, dword [esp + 0x4c]
movzx edx, byte [edi + edx]
imul edx, eax
add dword [esp + 0x10], edx
mov edx, dword [esp + 0x50]
movzx edx, byte [edi + edx]
imul edx, eax
add dword [esp + 0x14], edx
mov edx, dword [esp + 0x54]
movzx edx, byte [edi + edx]
imul edx, eax
mov eax, dword [esp + 0x5c]
add dword [esp + 0x20], edx
test eax, eax
jle 0x4068ab
mov edx, dword [ebp + 8]
add ecx, dword [ebp]
add esi, dword [ebp + 4]
add dword [esp + 0x24], edx
jmp 0x4068c0
mov edx, dword [ebp]
add dword [esp + 0x18], edx
mov edx, dword [ebp + 4]
add dword [esp + 0x28], edx
mov edx, dword [ebp + 8]
add dword [esp + 0x1c], edx
mov edx, dword [esp + 0x44]
dec edx
cmp eax, edx
jge 0x4068d1
mov edx, dword [esp + 0x2c]
add dword [esp + 0x68], edx
mov ebx, dword [esp + 0x88]
add dword [esp + 0x64], 4
inc eax
cmp eax, ebx
mov dword [esp + 0x5c], eax
jle 0x406820
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x78]
lea eax, [eax + edx*2]
xor ebp, ebp
add eax, edx
cmp dword [esp + 0x44], ebp
mov dword [esp + 0x3c], eax
mov edi, ebx
mov dword [esp + 0x40], ebp
jle 0x406a38
lea edx, [ebx + 1]
mov dword [esp + 0x68], edx
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
movzx edx, byte [edx + ebx]
mov byte [eax], dl
mov edx, dword [esp + 0x14]
movzx edx, byte [edx + ebx]
mov byte [eax + 1], dl
mov edx, dword [esp + 0x20]
mov bl, byte [edx + ebx]
sub edx, dword [esp + 0x1c]
mov byte [eax + 2], bl
mov eax, dword [esp + 0x18]
sub dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x88]
inc eax
add eax, edi
mov dword [esp + 0x20], edx
cdq
idiv dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edx, dword [eax + edx*4]
mov eax, dword [edx]
sub dword [esp + 0x18], eax
mov eax, dword [edx + 4]
sub dword [esp + 0x28], eax
mov eax, dword [edx + 8]
sub dword [esp + 0x1c], eax
cmp dword [esp + 0x38], 0
jne 0x40699b
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x68]
dec eax
cmp ebx, eax
jge 0x40698f
mov eax, ebx
imul eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x58]
mov dword [ebx + ebp*4], eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + ebp*4]
add eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x4c]
movzx ebx, byte [eax + ebx]
mov dword [edx], ebx
mov ebx, dword [esp + 0x50]
movzx ebx, byte [eax + ebx]
add ecx, dword [edx]
mov dword [edx + 4], ebx
add esi, dword [edx + 4]
mov ebx, dword [esp + 0x54]
movzx eax, byte [eax + ebx]
mov dword [edx + 8], eax
mov edx, dword [esp + 0x24]
add edx, eax
add dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x30]
mov ebp, dword [esp + 0x40]
add dword [esp + 0x10], ecx
add dword [esp + 0x14], esi
inc dword [esp + 0x68]
inc ebp
mov dword [esp + 0x40], ebp
mov edi, edx
mov edx, dword [esp + 0x34]
mov eax, dword [edx + edi*4]
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
add dword [esp + 0x1c], eax
sub dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x60]
add dword [esp + 0x18], edx
add dword [esp + 0x28], ebx
sub ecx, edx
sub esi, ebx
cmp ebp, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
jl 0x406914
mov ebx, dword [esp + 0x88]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x70]
inc ecx
xor edi, edi
cmp ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
jl 0x4067d0
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
push eax
call fcn.004348cb
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004348cb
mov edx, dword [esp + 0x5c]
push edx
call fcn.004348cb
mov eax, dword [esp + 0x64]
push eax
call fcn.004348cb
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004348cb
add esp, 0x14
cmp ebp, edi
jle 0x406aa5
mov edi, edi
mov edx, dword [esp + 0x34]
mov eax, dword [edx + edi*4]
push eax
call fcn.004348cb
inc edi
add esp, 4
cmp edi, ebp
jl 0x406a90
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004348cb
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret