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

Disassembly:
sub esp, 0x58
test eax, eax
je 0x41780b
mov eax, dword [eax]
jmp 0x41780d
xor eax, eax
push ebx
push ebp
push esi
mov dword [esp + 0x44], eax
push edi
test ecx, ecx
je 0x41781d
mov ebp, dword [ecx]
jmp 0x41781f
xor ebp, ebp
add eax, 0xfffffffe
mov dword [esp + 0x44], ebp
mov dword [esp + 0x64], eax
test ebp, ebp
jg 0x417833
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 0x417847
mov eax, edx
cmp ebp, 1
jge 0x417853
mov ebp, 1
jmp 0x417859
cmp ebp, eax
jle 0x41785d
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 0x417e13
cmp dword [esp + 0x7c], eax
je 0x417e13
cmp dword [esp + 0x80], eax
je 0x417e13
cmp ebx, 5
jl 0x417e13
cmp edx, 5
jl 0x417e13
cmp dword [esp + 0x48], eax
jne 0x417960
cmp dword [esp + 0x44], eax
jg 0x417960
mov eax, dword [esp + 0x70]
cmp eax, 0xffffffff
je 0x417960
test eax, eax
je 0x4178f3
cmp eax, 0xffffff
jne 0x417960
mov esi, dword [esp + 0x7c]
push ecx
push 1
push esi
call fcn.004c16a0
mov eax, dword [esp + 0x8c]
mov byte [eax], 1
mov eax, dword [esp + 0x84]
add esp, 0xc
test eax, eax
jle 0x417dca
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
test ebx, ebx
jle 0x417948
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 0x417941
mov byte [ecx], 0
add eax, 4
inc ecx
dec edx
jne 0x417930
lea eax, [ebx*4]
add esi, ebx
add edi, eax
dec dword [esp + 0x6c]
jne 0x417924
mov bl, 1
jmp 0x417dd2
mov eax, dword [esp + 0x18]
add eax, eax
add eax, eax
push eax
call fcn.004ba2ed
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x417e0f
mov eax, dword [esp + 0x18]
add eax, eax
add eax, eax
push eax
call fcn.004ba2ed
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x417dce
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004ba2ed
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x417dce
mov edx, dword [esp + 0x18]
push edx
push 1
push eax
call fcn.004c16a0
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 0x417a38
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 0x417a18
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 0x417a01
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 0x4179f3
xor eax, eax
mov dword [esp + 0x34], eax
test esi, esi
jle 0x417ae7
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov edi, edi
cmp eax, ebp
jl 0x417a5b
lea edx, [ebx + ebp]
cmp eax, edx
jl 0x417ad5
xor edx, edx
cmp dword [esp + 0x50], edx
jle 0x417ad5
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 0x417ab7
mov eax, dword [esp + 0x78]
add eax, ebp
cmp edx, eax
jge 0x417ab7
cmp dword [esp + 0x34], ebp
jge 0x417aaa
mov eax, dword [ecx]
jmp 0x417ab0
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 0x417a92
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 0x417a50
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 0x417b79
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], edx
lea ecx, [ecx]
cmp edi, ebp
jl 0x417b1e
mov eax, dword [esp + 0x78]
add eax, ebp
cmp edi, eax
jl 0x417b5d
xor eax, eax
test esi, esi
jle 0x417b5d
mov ebx, dword [esp + 0x14]
lea ebx, [ebx + ecx*4]
jmp 0x417b30
cmp edi, ebp
jge 0x417b38
mov ecx, dword [ebx]
jmp 0x417b4c
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 0x417b30
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 0x417b10
cmp dword [esp + 0x18], 0
jle 0x417bf3
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 0x417ba0
cmp byte [esp + 0x84], 0
mov ecx, dword [edx + edi]
je 0x417bb2
movzx eax, cl
jmp 0x417be8
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 0x417ba0
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
push ebx
push esi
call fcn.00418220
mov edi, dword [esp + 0x24]
sub ebx, edi
mov edx, ebx
add esp, 8
cmp ebp, edx
jge 0x417d70
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 0x417d50
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 0x417d13
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 0x417d2e
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 0x417cb0
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 0x417c50
mov eax, dword [esp + 0x28]
mov dword [esp + 0x6c], 0
cmp ebp, eax
jge 0x417dbb
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 0x417db3
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.004c3030
add esp, 0xc
add dword [esp + 0x6c], edi
add ebx, esi
dec dword [esp + 0x58]
jne 0x417d90
mov edx, dword [esp + 0x7c]
mov al, byte [edx]
mov ecx, dword [esp + 0x80]
mov byte [ecx], al
mov bl, 1
jmp 0x417dd2
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x417de3
push eax
call fcn.004ba14c
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x417df4
push eax
call fcn.004ba14c
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x417e05
push eax
call fcn.004ba14c
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