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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x457120
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
mov ebp, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebp + 0x4c]
mov eax, dword [eax + 0x5a4]
cmp eax, esi
je 0x409f44
cmp dword [ebp + 0x48], eax
je 0x409f44
mov ecx, ebp
call fcn.00409c90
cmp eax, esi
je 0x40a68e
mov ecx, dword [esp + 0xc4]
xor eax, eax
mov al, byte [ebp + 0xc]
mov dword [esp + 0x60], esi
mov edi, dword [ecx]
mov dword [esp + 0x64], esi
shr eax, 3
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov edx, dword [ecx + 8]
mov dword [esp + 0xa4], edx
xor edx, edx
mov ebx, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x28]
div ecx
xor edx, edx
mov esi, eax
mov eax, ebx
div ecx
xor edx, edx
mov ebx, eax
mov eax, edi
div ecx
xor edx, edx
mov dword [esp + 0x5c], ebx
mov edi, eax
mov eax, dword [esp + 0xa4]
div ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x7c]
cmp eax, 4
jae 0x409fc7
cmp eax, 1
mov edx, edi
jne 0x409fbe
and edx, 3
jmp 0x409fc1
and edx, 1
sub edi, edx
mov dword [esp + 0x50], edi
cmp ecx, 1
jne 0x409fd1
mov edi, dword [ebp + 0x48]
jmp 0x409fd4
mov edi, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
sub ecx, edx
mov byte [esp + 0x13], 0
cmp ecx, 0x10
jge 0x409ff7
mov dword [esp + 0x40], 8
mov byte [esp + 0x13], 1
jmp 0x40a00a
xor edx, edx
cmp ecx, 0x20
setge dl
dec edx
and edx, 0xffffffd0
add edx, 0x40
mov dword [esp + 0x40], edx
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x40a3c1
mov ecx, dword [ebp + 0x4c]
mov dl, byte [ecx + 0x95]
test dl, dl
jne 0x40a3c1
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x50]
imul edx, esi
imul ecx, eax
lea eax, [edx + ecx]
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x44]
add ecx, eax
add edx, eax
add edi, eax
cmp esi, ebx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x14], esi
jge 0x40a68e
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x2c], ecx
cmp eax, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x28], eax
jl 0x40a083
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
cmp eax, esi
mov dword [esp + 0x34], eax
jge 0x40a38b
jmp 0x40a09d
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x90], ecx
lea ecx, [eax + edx]
mov dword [esp + 0x84], edi
cmp ecx, esi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x20], ecx
jl 0x40a0cd
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebp + 0x30]
sub ebx, eax
xor edx, edx
imul ebx, dword [esp + 0x7c]
mov eax, ebx
mov esi, dword [esp + 0x28]
div ecx
mov ecx, dword [esp + 0x18]
mov edx, edi
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x14]
cmp ecx, esi
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x74], eax
jae 0x40a347
jmp 0x40a121
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x44]
mov esi, dword [ebp + 0x34]
mov ecx, eax
imul esi, eax
mov eax, dword [esp + 0x84]
lea edi, [esi + eax]
mov eax, dword [esp + 0x90]
add esi, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a186
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x90]
mov esi, dword [esp + 0x84]
add edi, eax
add esi, eax
mov eax, dword [ebp + 0x34]
inc eax
mov ecx, dword [esp + 0x28]
cdq
idiv dword [ebp + 0x30]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x90], edi
inc eax
mov dword [esp + 0x84], esi
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [ebp + 0x34], edx
jb 0x40a119
jmp 0x40a347
mov al, byte [esp + 0x13]
mov esi, dword [esp + 0x24]
mov ecx, dword [ebp + 0x28]
test al, al
je 0x40a1c2
mov edx, ecx
mov eax, esi
imul edx, esi
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x14]
sub eax, edx
mov edx, dword [esp + 0x18]
imul eax, dword [ebp + 4]
add edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x2c]
add eax, edx
mov dword [esp + 0x44], eax
mov edx, eax
jmp 0x40a1cd
mov eax, ecx
imul eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov eax, ecx
mov edi, dword [esp + 0x28]
imul eax, dword [esp + 0x34]
mov dword [esp + 0x60], eax
mov eax, ecx
imul eax, dword [esp + 0x20]
imul ecx, edi
mov dword [esp + 0x68], eax
mov al, byte [esp + 0x13]
test al, al
mov dword [esp + 0x6c], ecx
jne 0x40a1fa
mov esi, dword [esp + 0x14]
cmp esi, edi
jae 0x40a278
mov eax, edi
sub eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40a222
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov ecx, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40a222
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x30]
mov ecx, ebx
mov eax, ecx
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov ecx, ebx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
add edi, eax
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
dec eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
jne 0x40a206
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40a2d2
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x84]
call fcn.00404f00
mov esi, dword [esp + 0xc0]
lea edx, [esp + 0x78]
push eax
push edx
mov ecx, esi
mov dword [esp + 0xbc], 0
call fcn.00405170
push eax
mov ecx, esi
mov byte [esp + 0xb8], 1
call fcn.00404f70
lea ecx, [esp + 0x78]
mov byte [esp + 0xb4], 0
call fcn.00404f60
lea ecx, [esp + 0x80]
jmp 0x40a337
lea eax, [esp + 0x60]
lea ecx, [esp + 0x98]
push eax
call fcn.00404f00
mov esi, dword [esp + 0xbc]
lea ecx, [esp + 0x98]
lea edx, [esp + 0x88]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0xbc], 2
call fcn.00405170
push eax
mov ecx, esi
mov byte [esp + 0xb8], 3
call fcn.00404f70
lea ecx, [esp + 0x88]
mov byte [esp + 0xb4], 2
call fcn.00404f60
lea ecx, [esp + 0x98]
mov dword [esp + 0xb4], 0xffffffff
call fcn.00404f60
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x8c]
add esi, ebx
add edi, ebx
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x58]
add edx, ebx
cmp eax, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], eax
jl 0x40a099
mov ebx, dword [esp + 0x5c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x94]
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x4c]
imul eax, dword [esp + 0x40]
add ecx, eax
add edi, eax
add edx, eax
mov eax, dword [esp + 0x70]
cmp eax, ebx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x14], eax
jl 0x40a05d
jmp 0x40a68e
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x50]
imul ecx, esi
imul edx, eax
lea eax, [ecx + edx]
mov ecx, dword [ebp + 0x3c]
add ecx, eax
add eax, edi
cmp esi, ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], esi
jge 0x40a68e
lea eax, [ebx - 1]
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
lea edx, [edi + eax]
cmp edx, ebx
mov dword [esp + 0x70], edx
mov dword [esp + 0x2c], edx
jl 0x40a41a
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
cmp eax, esi
mov dword [esp + 0x34], eax
jge 0x40a662
lea ecx, [esi - 1]
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x1c]
add eax, ecx
cmp eax, esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x20], eax
jl 0x40a465
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x28], edx
sub ebx, ecx
mov ecx, dword [esp + 0x18]
imul ebx, dword [esp + 0x7c]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x30]
mov eax, ebx
xor edx, edx
div ecx
mov dword [esp + 0x24], edi
mov ecx, eax
mov eax, dword [esp + 0x2c]
cmp edi, eax
mov dword [esp + 0x88], ecx
jae 0x40a61c
jmp 0x40a4a7
mov ecx, dword [esp + 0x88]
mov edx, dword [ebp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, edx
imul eax, ecx
lea edi, [eax + esi]
mov esi, dword [esp + 0x3c]
add esi, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a504
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
lea eax, [ecx - 1]
cmp esi, eax
je 0x40a4f2
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
add edi, eax
add esi, eax
lea eax, [edx + 1]
cdq
idiv dword [ebp + 0x30]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], esi
mov dword [ebp + 0x34], edx
mov eax, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jb 0x40a4a0
jmp 0x40a618
mov al, byte [esp + 0x13]
test al, al
mov eax, dword [ebp + 0x28]
je 0x40a53c
mov ecx, dword [esp + 0x24]
mov edx, eax
imul edx, ecx
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esp + 0x18]
imul ecx, dword [ebp + 4]
add edx, ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
add ecx, edx
mov dword [esp + 0x28], ecx
jmp 0x40a547
mov ecx, eax
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x64], ecx
mov edi, dword [esp + 0x2c]
mov edx, eax
imul edx, dword [esp + 0x34]
mov ecx, eax
imul eax, edi
imul ecx, dword [esp + 0x20]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x60]
mov dword [esp + 0x68], ecx
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x70], eax
call fcn.00404f00
mov esi, dword [esp + 0xbc]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x74]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0xbc], 4
call fcn.00405170
push eax
mov ecx, esi
mov byte [esp + 0xb8], 5
call fcn.00404f70
lea ecx, [esp + 0x74]
mov byte [esp + 0xb4], 4
call fcn.00404f60
lea ecx, [esp + 0x48]
mov dword [esp + 0xb4], 0xffffffff
call fcn.00404f60
mov al, byte [esp + 0x13]
test al, al
mov eax, dword [esp + 0x24]
jne 0x40a5de
mov eax, dword [esp + 0x14]
cmp eax, edi
jae 0x40a618
mov edx, edi
sub edx, eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
add esi, eax
add ecx, eax
dec edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ecx
jne 0x40a5e6
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x34]
cmp eax, ecx
je 0x40a63f
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add ecx, ebx
add eax, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8c]
mov edi, dword [esp + 0x14]
cmp eax, esi
mov dword [esp + 0x34], eax
jl 0x40a438
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x70]
cmp edi, dword [esp + 0x78]
je 0x40a680
mov eax, dword [ebp + 4]
mov esi, dword [esp + 0x44]
imul eax, dword [esp + 0x40]
add ecx, eax
add esi, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], esi
mov eax, edx
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x40a3f3
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 0xc