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

Disassembly:
sub esp, 0x58
test eax, eax
je 0x41801b
mov eax, dword [eax]
jmp 0x41801d
xor eax, eax
push ebx
push ebp
push esi
mov dword [esp + 0x44], eax
push edi
test ecx, ecx
je 0x41802d
mov ebp, dword [ecx]
jmp 0x41802f
xor ebp, ebp
add eax, 0xfffffffe
mov dword [esp + 0x44], ebp
mov dword [esp + 0x64], eax
test ebp, ebp
jg 0x418043
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 0x418057
mov eax, edx
cmp ebp, 1
jge 0x418063
mov ebp, 1
jmp 0x418069
cmp ebp, eax
jle 0x41806d
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 0x418623
cmp dword [esp + 0x7c], eax
je 0x418623
cmp dword [esp + 0x80], eax
je 0x418623
cmp ebx, 5
jl 0x418623
cmp edx, 5
jl 0x418623
cmp dword [esp + 0x48], eax
jne 0x418170
cmp dword [esp + 0x44], eax
jg 0x418170
mov eax, dword [esp + 0x70]
cmp eax, 0xffffffff
je 0x418170
test eax, eax
je 0x418103
cmp eax, 0xffffff
jne 0x418170
mov esi, dword [esp + 0x7c]
push ecx
push 1
push esi
call fcn.004d2f90
mov eax, dword [esp + 0x8c]
mov byte [eax], 1
mov eax, dword [esp + 0x84]
add esp, 0xc
test eax, eax
jle 0x4185da
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
test ebx, ebx
jle 0x418158
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 0x418151
mov byte [ecx], 0
add eax, 4
inc ecx
dec edx
jne 0x418140
lea eax, [ebx*4]
add esi, ebx
add edi, eax
dec dword [esp + 0x6c]
jne 0x418134
mov bl, 1
jmp 0x4185e2
mov eax, dword [esp + 0x18]
add eax, eax
add eax, eax
push eax
call fcn.004c9c38
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x41861f
mov eax, dword [esp + 0x18]
add eax, eax
add eax, eax
push eax
call fcn.004c9c38
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x4185de
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004c9c38
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x4185de
mov edx, dword [esp + 0x18]
push edx
push 1
push eax
call fcn.004d2f90
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 0x418248
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 0x418228
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 0x418211
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 0x418203
xor eax, eax
mov dword [esp + 0x34], eax
test esi, esi
jle 0x4182f7
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov edi, edi
cmp eax, ebp
jl 0x41826b
lea edx, [ebx + ebp]
cmp eax, edx
jl 0x4182e5
xor edx, edx
cmp dword [esp + 0x50], edx
jle 0x4182e5
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 0x4182c7
mov eax, dword [esp + 0x78]
add eax, ebp
cmp edx, eax
jge 0x4182c7
cmp dword [esp + 0x34], ebp
jge 0x4182ba
mov eax, dword [ecx]
jmp 0x4182c0
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 0x4182a2
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 0x418260
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 0x418389
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], edx
lea ecx, [ecx]
cmp edi, ebp
jl 0x41832e
mov eax, dword [esp + 0x78]
add eax, ebp
cmp edi, eax
jl 0x41836d
xor eax, eax
test esi, esi
jle 0x41836d
mov ebx, dword [esp + 0x14]
lea ebx, [ebx + ecx*4]
jmp 0x418340
cmp edi, ebp
jge 0x418348
mov ecx, dword [ebx]
jmp 0x41835c
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 0x418340
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 0x418320
cmp dword [esp + 0x18], 0
jle 0x418403
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 0x4183b0
cmp byte [esp + 0x84], 0
mov ecx, dword [edx + edi]
je 0x4183c2
movzx eax, cl
jmp 0x4183f8
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 0x4183b0
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
push ebx
push esi
call fcn.00418a30
mov edi, dword [esp + 0x24]
sub ebx, edi
mov edx, ebx
add esp, 8
cmp ebp, edx
jge 0x418580
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 0x418560
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 0x418523
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 0x41853e
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 0x4184c0
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 0x418460
mov eax, dword [esp + 0x28]
mov dword [esp + 0x6c], 0
cmp ebp, eax
jge 0x4185cb
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 0x4185c3
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.004d23c0
add esp, 0xc
add dword [esp + 0x6c], edi
add ebx, esi
dec dword [esp + 0x58]
jne 0x4185a0
mov edx, dword [esp + 0x7c]
mov al, byte [edx]
mov ecx, dword [esp + 0x80]
mov byte [ecx], al
mov bl, 1
jmp 0x4185e2
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4185f3
push eax
call fcn.004ca991
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x418604
push eax
call fcn.004ca991
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x418615
push eax
call fcn.004ca991
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