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

Disassembly:
sub esp, 0x58
test eax, eax
je 0x418f5b
mov eax, dword [eax]
jmp 0x418f5d
xor eax, eax
push ebx
push ebp
push esi
mov dword [esp + 0x44], eax
push edi
test ecx, ecx
je 0x418f6d
mov ebp, dword [ecx]
jmp 0x418f6f
xor ebp, ebp
add eax, 0xfffffffe
mov dword [esp + 0x44], ebp
mov dword [esp + 0x64], eax
test ebp, ebp
jg 0x418f83
mov ebp, 7
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x1c], ebp
mov eax, ebx
cmp ebx, edx
jl 0x418f97
mov eax, edx
cmp ebp, 1
jge 0x418fa3
mov ebp, 1
jmp 0x418fa9
cmp ebp, eax
jle 0x418fad
mov ebp, eax
mov dword [esp + 0x1c], ebp
lea eax, [ebp + ebp + 1]
imul eax, eax
inc ebp
mov dword [esp + 0x5c], eax
lea edi, [edx + ebp*2]
lea esi, [ebx + ebp*2]
mov eax, edi
imul eax, esi
mov ecx, edx
mov dword [esp + 0x18], eax
imul ecx, ebx
xor eax, eax
mov byte [esp + 0x13], 0
mov dword [esp + 0x60], ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x6c], eax
je 0x419563
cmp dword [esp + 0x7c], eax
je 0x419563
cmp dword [esp + 0x80], eax
je 0x419563
cmp ebx, 5
jl 0x419563
cmp edx, 5
jl 0x419563
cmp dword [esp + 0x48], eax
jne 0x4190b0
cmp dword [esp + 0x44], eax
jg 0x4190b0
mov eax, dword [esp + 0x70]
cmp eax, 0xffffffff
je 0x4190b0
test eax, eax
je 0x419043
cmp eax, 0xffffff
jne 0x4190b0
mov esi, dword [esp + 0x7c]
push ecx
push 1
push esi
call fcn.004ce290
mov eax, dword [esp + 0x8c]
mov byte [eax], 1
mov eax, dword [esp + 0x84]
add esp, 0xc
test eax, eax
jle 0x41951a
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
test ebx, ebx
jle 0x419098
mov ecx, esi
mov eax, edi
mov edx, ebx
mov edi, edi
mov ebp, dword [eax]
and ebp, 0xffffff
cmp ebp, dword [esp + 0x70]
je 0x419091
mov byte [ecx], 0
add eax, 4
inc ecx
dec edx
jne 0x419080
lea eax, [ebx*4]
add esi, ebx
add edi, eax
dec dword [esp + 0x6c]
jne 0x419074
mov bl, 1
jmp 0x419522
mov eax, dword [esp + 0x18]
add eax, eax
add eax, eax
push eax
call fcn.004c4f28
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x41955f
mov eax, dword [esp + 0x18]
add eax, eax
add eax, eax
push eax
call fcn.004c4f28
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x41951e
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004c4f28
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x41951e
mov edx, dword [esp + 0x18]
push edx
push 1
push eax
call fcn.004ce290
mov eax, esi
sub edi, ebp
sub eax, ebp
add esp, 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
cmp ebp, edi
jge 0x419188
mov edx, dword [esp + 0x6c]
lea eax, [esi*4 + 4]
imul eax, ebp
add eax, dword [esp + 0x14]
mov ecx, edi
sub ecx, ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], ecx
cmp ebp, dword [esp + 0x2c]
jge 0x419168
mov ecx, dword [esp + 0x2c]
mov edi, eax
sub ecx, ebp
mov ebx, dword [edx]
and ebx, 0xffffff
mov dword [edi], ebx
add edx, 4
add edi, 4
dec ecx
jne 0x419151
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x48]
lea ecx, [ebx*4]
add edx, ecx
lea ecx, [esi*4]
add eax, ecx
dec dword [esp + 0x44]
mov dword [esp + 0x48], edx
jne 0x419143
xor eax, eax
mov dword [esp + 0x34], eax
test esi, esi
jle 0x419237
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov edi, edi
cmp eax, ebp
jl 0x4191ab
lea edx, [ebx + ebp]
cmp eax, edx
jl 0x419225
xor edx, edx
cmp dword [esp + 0x50], edx
jle 0x419225
mov ecx, dword [esp + 0x6c]
mov eax, ebp
imul eax, ebx
lea edi, [ebx*4]
lea ebx, [eax*4]
sub ecx, ebx
mov ebx, dword [esp + 0x74]
dec ebx
sub ebx, eax
mov eax, dword [esp + 0x6c]
lea eax, [eax + ebx*4]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x30], eax
cmp edx, ebp
jl 0x419207
mov eax, dword [esp + 0x78]
add eax, ebp
cmp edx, eax
jge 0x419207
cmp dword [esp + 0x34], ebp
jge 0x4191fa
mov eax, dword [ecx]
jmp 0x419200
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
and eax, 0xffffff
mov dword [ebx], eax
add dword [esp + 0x30], edi
lea eax, [esi*4]
inc edx
add ecx, edi
add ebx, eax
cmp edx, dword [esp + 0x50]
jl 0x4191e2
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x74]
add dword [esp + 0x38], 4
inc eax
mov dword [esp + 0x34], eax
cmp eax, esi
jl 0x4191a0
mov edx, dword [esp + 0x28]
mov ecx, esi
imul ecx, ebp
xor edi, edi
dec edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x6c], edi
cmp dword [esp + 0x50], edi
jle 0x4192c9
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], edx
lea ecx, [ecx]
cmp edi, ebp
jl 0x41926e
mov eax, dword [esp + 0x78]
add eax, ebp
cmp edi, eax
jl 0x4192ad
xor eax, eax
test esi, esi
jle 0x4192ad
mov ebx, dword [esp + 0x14]
lea ebx, [ebx + ecx*4]
jmp 0x419280
cmp edi, ebp
jge 0x419288
mov ecx, dword [ebx]
jmp 0x41929c
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x14]
imul ecx, esi
add ecx, eax
mov ecx, dword [edi + ecx*4]
mov edi, dword [esp + 0x6c]
mov dword [edx], ecx
inc eax
add ebx, 4
add edx, 4
cmp eax, esi
jl 0x419280
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
inc edi
lea eax, [esi*4]
add edx, eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x48], edx
cmp edi, dword [esp + 0x50]
jl 0x419260
cmp dword [esp + 0x18], 0
jle 0x419343
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub edx, edi
mov dword [esp + 0x58], edx
mov dword [esp + 0x6c], eax
jmp 0x4192f0
cmp byte [esp + 0x84], 0
mov ecx, dword [edx + edi]
je 0x419302
movzx eax, cl
jmp 0x419338
mov edx, ecx
shr edx, 8
movzx edx, dl
mov eax, ecx
imul edx, edx, 0x96
shr eax, 0x10
movzx eax, al
movzx ecx, cl
imul ecx, ecx, 0x4d
lea ebx, [eax*8]
sub ebx, eax
lea eax, [edx + ebx*4]
mov edx, dword [esp + 0x58]
add eax, ecx
sar eax, 8
and eax, 0xff
mov dword [edi], eax
add edi, 4
dec dword [esp + 0x6c]
jne 0x4192f0
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
push ebx
push esi
call fcn.00419970
mov edi, dword [esp + 0x24]
sub ebx, edi
mov edx, ebx
add esp, 8
cmp ebp, edx
jge 0x4194c0
mov eax, esi
sub eax, edi
mov dword [esp + 0x4c], eax
mov eax, ebp
sub eax, edi
dec eax
lea ecx, [edi + ebp]
imul eax, esi
imul ecx, esi
mov ebx, ebp
imul ebx, esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
sub ecx, edi
sub eax, edi
sub edx, ebp
mov dword [esp + 0x54], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], edx
mov edi, edi
mov ecx, ebp
cmp ecx, dword [esp + 0x4c]
jge 0x4194a0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
lea edx, [ebx + ecx]
lea edx, [eax + edx*4]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
lea edx, [ecx + eax]
mov eax, dword [esp + 0x1c]
add edx, eax
lea edx, [edi + edx*4]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x44]
add edx, ecx
add edx, eax
lea eax, [edi + edx*4]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x34], eax
lea eax, [ecx + edx]
lea edx, [edi + eax*4 - 4]
mov eax, dword [esp + 0x48]
add eax, ecx
mov dword [esp + 0x38], edx
lea edi, [edi + eax*4 - 4]
lea ebx, [ebx]
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
mov edx, dword [esp + 0x38]
sub eax, dword [edx]
mov edx, dword [esp + 0x34]
sub eax, dword [edx]
xor edx, edx
add eax, dword [edi]
div dword [esp + 0x5c]
cmp byte [esp + 0x84], 0
mov byte [esp + 0x6c], al
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
jne 0x419463
mov eax, edx
shr eax, 8
movzx ebx, al
mov eax, edx
imul ebx, ebx, 0x96
movzx edx, dl
shr eax, 0x10
imul edx, edx, 0x4d
movzx eax, al
lea ebp, [eax*8]
sub ebp, eax
lea eax, [ebx + ebp*4]
mov ebp, dword [esp + 0x60]
mov ebx, dword [esp + 0x54]
add edx, eax
sar edx, 8
movzx eax, byte [esp + 0x6c]
add eax, dword [esp + 0x64]
movzx edx, dl
cmp edx, eax
jae 0x41947e
mov edx, dword [esp + 0x24]
lea eax, [ebx + ecx]
mov byte [eax + edx], 0
mov eax, 4
add dword [esp + 0x38], eax
add dword [esp + 0x34], eax
add dword [esp + 0x30], eax
add dword [esp + 0x18], eax
inc ecx
add edi, eax
cmp ecx, dword [esp + 0x4c]
jl 0x419400
add dword [esp + 0x3c], esi
add dword [esp + 0x40], esi
add dword [esp + 0x44], esi
add dword [esp + 0x48], esi
add ebx, esi
dec dword [esp + 0x58]
mov dword [esp + 0x54], ebx
jne 0x4193a0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x6c], 0
cmp ebp, eax
jge 0x41950b
lea ebx, [esi + 1]
imul ebx, ebp
add ebx, dword [esp + 0x24]
sub eax, ebp
mov dword [esp + 0x58], eax
cmp ebp, dword [esp + 0x2c]
jge 0x419503
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x6c]
sub edi, ebp
push edi
push ebx
push eax
call fcn.004cd6c0
add esp, 0xc
add dword [esp + 0x6c], edi
add ebx, esi
dec dword [esp + 0x58]
jne 0x4194e0
mov edx, dword [esp + 0x7c]
mov al, byte [edx]
mov ecx, dword [esp + 0x80]
mov byte [ecx], al
mov bl, 1
jmp 0x419522
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x419533
push eax
call fcn.004c57e5
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x419544
push eax
call fcn.004c57e5
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x419555
push eax
call fcn.004c57e5
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x58
ret
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret