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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x455440
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 + 0x54]
mov eax, dword [eax + 0xe078]
cmp eax, esi
je 0x408d74
cmp dword [ebp + 0x50], eax
je 0x408d74
mov ecx, ebp
call fcn.00408ac0
cmp eax, esi
je 0x4094d4
mov ecx, dword [esp + 0xc4]
xor eax, eax
mov al, byte [ebp + 0xc]
mov dword [esp + 0x64], esi
mov edi, dword [ecx]
mov dword [esp + 0x68], esi
shr eax, 3
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov edx, dword [ecx + 8]
mov dword [esp + 0xa4], edx
xor edx, edx
mov ebx, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x30]
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 + 0x60], ebx
mov edi, eax
mov eax, dword [esp + 0xa4]
div ecx
mov dword [esp + 0x54], edi
mov edx, eax
mov eax, dword [esp + 0x80]
cmp eax, 4
mov dword [esp + 0x5c], edx
jae 0x408e03
cmp eax, 1
mov edx, edi
jne 0x408df6
and edx, 3
jmp 0x408df9
and edx, 1
sub edi, edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x54], edi
cmp ecx, 1
jne 0x408e0d
mov ecx, dword [ebp + 0x50]
jmp 0x408e10
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x54]
mov edi, edx
mov byte [esp + 0x13], 0
sub edi, ecx
cmp edi, 0x10
jge 0x408e35
mov dword [esp + 0x3c], 8
mov byte [esp + 0x13], 1
jmp 0x408e48
xor ecx, ecx
cmp edi, 0x20
setge cl
dec ecx
and ecx, 0xffffffd0
add ecx, 0x40
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x409202
mov ecx, dword [ebp + 0x54]
cmp byte [ecx + 0xa4], 0
jne 0x409202
mov ecx, dword [ebp + 0x4c]
test ecx, ecx
je 0x409202
mov edx, dword [ebp + 4]
mov edi, dword [esp + 0x54]
imul edx, esi
imul edi, eax
lea eax, [edx + edi]
mov edi, dword [ebp + 0x44]
mov edx, dword [esp + 0x18]
add edi, eax
add ecx, eax
add eax, edx
cmp esi, ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
jge 0x4094d4
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], edi
lea eax, [ecx + edx]
cmp eax, ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x2c], eax
jl 0x408ed2
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x54]
cmp eax, esi
mov dword [esp + 0x34], eax
jge 0x4091cb
jmp 0x408ee8
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x94], edi
lea ecx, [eax + edx]
cmp ecx, esi
mov dword [esp + 0x90], ecx
mov dword [esp + 0x48], ecx
jl 0x408f11
mov dword [esp + 0x48], esi
mov ebx, dword [esp + 0x48]
mov ecx, dword [ebp + 0x38]
sub ebx, eax
xor edx, edx
imul ebx, dword [esp + 0x80]
mov eax, ebx
mov dword [esp + 0x44], 1
div ecx
mov ecx, dword [esp + 0x1c]
mov edx, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x88], edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
cmp ecx, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x78], eax
jae 0x409192
jmp 0x408f6e
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x88]
mov esi, dword [ebp + 0x3c]
mov ecx, eax
imul esi, eax
mov eax, dword [esp + 0x94]
lea edi, [esi + eax]
mov eax, dword [esp + 0x30]
add esi, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x408fca
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x94]
add edi, eax
add esi, eax
mov eax, dword [ebp + 0x3c]
inc eax
mov ecx, dword [esp + 0x2c]
cdq
idiv dword [ebp + 0x38]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], edi
inc eax
mov dword [esp + 0x94], esi
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [ebp + 0x3c], edx
jb 0x408f63
jmp 0x40918e
mov al, byte [esp + 0x13]
mov esi, dword [esp + 0x24]
mov ecx, dword [ebp + 0x30]
test al, al
je 0x409009
mov edx, ecx
mov eax, esi
imul edx, esi
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x14]
sub eax, edx
mov edx, dword [esp + 0x1c]
imul eax, dword [ebp + 4]
add edx, eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x38]
add eax, edx
mov dword [esp + 0x88], eax
mov edx, eax
jmp 0x409014
mov eax, ecx
imul eax, dword [esp + 0x14]
mov dword [esp + 0x68], eax
mov eax, ecx
mov edi, dword [esp + 0x2c]
imul eax, dword [esp + 0x34]
mov dword [esp + 0x64], eax
mov eax, ecx
imul eax, dword [esp + 0x48]
imul ecx, edi
mov dword [esp + 0x6c], eax
mov al, byte [esp + 0x13]
test al, al
mov dword [esp + 0x70], ecx
jne 0x409041
mov esi, dword [esp + 0x14]
cmp esi, edi
jae 0x4090bf
mov eax, edi
sub eax, esi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x409069
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov ecx, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x409069
mov dword [esp + 0x44], eax
mov edi, dword [esp + 0x28]
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 + 0x20]
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 + 0x20]
mov ecx, dword [esp + 0x28]
add edi, eax
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], edi
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], eax
jne 0x40904d
mov eax, dword [esp + 0x44]
test eax, eax
je 0x409119
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x88]
call fcn.004031d0
mov esi, dword [esp + 0xc0]
lea edx, [esp + 0x7c]
push eax
push edx
mov ecx, esi
mov dword [esp + 0xbc], 0
call fcn.004033b0
push eax
mov ecx, esi
mov byte [esp + 0xb8], 1
call fcn.00403240
lea ecx, [esp + 0x7c]
mov byte [esp + 0xb4], 0
call fcn.00403230
lea ecx, [esp + 0x84]
jmp 0x40917e
lea eax, [esp + 0x64]
lea ecx, [esp + 0x98]
push eax
call fcn.004031d0
mov esi, dword [esp + 0xbc]
lea ecx, [esp + 0x98]
lea edx, [esp + 0x8c]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0xbc], 2
call fcn.004033b0
push eax
mov ecx, esi
mov byte [esp + 0xb8], 3
call fcn.00403240
lea ecx, [esp + 0x8c]
mov byte [esp + 0xb4], 2
call fcn.00403230
lea ecx, [esp + 0x98]
mov dword [esp + 0xb4], 0xffffffff
call fcn.00403230
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
add eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x90]
add edi, ebx
add edx, ebx
cmp eax, esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], eax
jl 0x408ee4
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x4c]
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x18]
imul eax, dword [esp + 0x3c]
add ecx, eax
add edi, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x50]
add ecx, eax
mov eax, dword [esp + 0x74]
cmp eax, ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x14], eax
jl 0x408ea7
jmp 0x4094d4
mov ecx, dword [ebp + 4]
mov edi, dword [esp + 0x54]
imul ecx, esi
imul edi, eax
lea eax, [ecx + edi]
mov ecx, dword [ebp + 0x44]
mov edi, dword [esp + 0x18]
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 0x4094d4
lea eax, [ebx - 1]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
lea edi, [esi + eax]
cmp edi, ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x28], edi
jl 0x40925f
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x54]
cmp eax, edx
mov dword [esp + 0x34], eax
jge 0x4094a8
lea ecx, [edx - 1]
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], edi
add eax, ecx
cmp eax, edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x38], eax
jl 0x4092a6
mov dword [esp + 0x38], edx
mov ebx, dword [esp + 0x38]
xor edx, edx
sub ebx, ecx
mov ecx, dword [esp + 0x1c]
imul ebx, dword [esp + 0x80]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x38]
mov eax, ebx
mov dword [esp + 0x20], edi
div ecx
mov dword [esp + 0x24], esi
mov ecx, eax
mov eax, dword [esp + 0x28]
cmp esi, eax
mov dword [esp + 0x8c], ecx
jae 0x40945c
jmp 0x4092eb
mov ecx, dword [esp + 0x8c]
mov edx, dword [ebp + 0x3c]
mov esi, dword [esp + 0x40]
mov eax, edx
imul eax, ecx
lea edi, [eax + esi]
mov esi, dword [esp + 0x18]
add esi, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x409348
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea eax, [ecx - 1]
cmp esi, eax
je 0x409336
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x40]
add edi, eax
add esi, eax
lea eax, [edx + 1]
cdq
idiv dword [ebp + 0x38]
mov dword [esp + 0x18], edi
mov dword [esp + 0x40], esi
mov dword [ebp + 0x3c], edx
mov eax, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jb 0x4092e4
jmp 0x40945c
mov al, byte [esp + 0x13]
test al, al
mov eax, dword [ebp + 0x30]
je 0x409380
mov ecx, dword [esp + 0x24]
mov edx, eax
imul edx, ecx
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esp + 0x1c]
imul ecx, dword [ebp + 4]
add edx, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
add ecx, edx
mov dword [esp + 0x20], ecx
jmp 0x40938b
mov ecx, eax
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x68], ecx
mov edi, dword [esp + 0x28]
mov edx, eax
imul edx, dword [esp + 0x34]
mov ecx, eax
imul eax, edi
imul ecx, dword [esp + 0x38]
mov dword [esp + 0x64], edx
lea edx, [esp + 0x64]
mov dword [esp + 0x6c], ecx
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x74], eax
call fcn.004031d0
mov esi, dword [esp + 0xbc]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x78]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0xbc], 4
call fcn.004033b0
push eax
mov ecx, esi
mov byte [esp + 0xb8], 5
call fcn.00403240
lea ecx, [esp + 0x78]
mov byte [esp + 0xb4], 4
call fcn.00403230
lea ecx, [esp + 0x50]
mov dword [esp + 0xb4], 0xffffffff
call fcn.00403230
mov al, byte [esp + 0x13]
test al, al
mov eax, dword [esp + 0x24]
jne 0x409422
mov eax, dword [esp + 0x14]
cmp eax, edi
jae 0x40945c
mov edx, edi
sub edx, eax
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
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 + 0x2c]
mov ecx, dword [esp + 0x20]
add esi, eax
add ecx, eax
dec edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], ecx
jne 0x40942a
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x34]
cmp eax, ecx
je 0x40947f
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
add ecx, ebx
add eax, ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x14]
cmp eax, ecx
mov dword [esp + 0x34], eax
mov edx, ecx
jl 0x409279
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x74]
cmp esi, dword [esp + 0x7c]
je 0x4094c6
mov eax, dword [ebp + 4]
mov esi, dword [esp + 0x44]
imul eax, dword [esp + 0x3c]
add ecx, eax
add esi, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], esi
mov eax, edi
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x409238
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 0xc