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

Disassembly:
push 0xffffffffffffffff
push 0x43f2f7
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44dd70]
xor eax, esp
push eax
lea eax, [esp + 0x10c]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov edi, 1
cmp dword [esi + 4], ebp
je 0x40917e
cmp dword [esi + 0x10], ebp
je 0x40917e
cmp dword [esi + 0x20], ebp
je 0x40917e
mov ebx, dword [esp + 0x11c]
cmp ebx, ebp
je 0x40917e
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0xb4]
push edx
mov edx, dword [esp + 0x134]
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0xd4]
push ecx
push edx
call fcn.0040d570
mov edi, eax
add esp, 0x18
cmp edi, ebp
jne 0x40917e
push ebx
call fcn.00407e00
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
je 0x40917e
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
push eax
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00406350
mov eax, dword [esi + 0xc]
add esp, 0xc
push 0x3e8
add eax, 0xa
push eax
lea ecx, [esp + 0x50]
call fcn.004091b0
xor ebx, ebx
cmp dword [esi + 0xc], ebp
mov dword [esp + 0x114], ebp
mov dword [esp + 0x48], ebx
jle 0x408fcf
mov dword [esp + 0x18], ebp
mov eax, dword [esi + 0x10]
mov edx, dword [eax + ebx]
mov ecx, dword [esi + 4]
mov edi, dword [eax + ebx + 4]
add eax, ebx
cmp dword [esp + 0x38], 0
mov eax, dword [eax + 8]
lea edx, [edx + edx*2]
fld dword [ecx + edx*4]
lea edx, [ecx + edx*4]
fstp dword [esp + 0x3c]
lea eax, [eax + eax*2]
fld dword [edx + 4]
lea eax, [ecx + eax*4]
fstp dword [esp + 0x40]
fld dword [edx + 8]
lea edx, [edi + edi*2]
fstp dword [esp + 0x44]
lea edx, [ecx + edx*4]
fld dword [edx]
fstp dword [esp + 0x2c]
fld dword [edx + 4]
fstp dword [esp + 0x30]
fld dword [edx + 8]
fstp dword [esp + 0x34]
fld dword [eax]
fstp dword [esp + 0x20]
fld dword [eax + 4]
fstp dword [esp + 0x24]
fld dword [eax + 8]
fstp dword [esp + 0x28]
jne 0x408ebb
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x40]
call fcn.00407a50
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0x30]
call fcn.00407a50
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x24]
call fcn.00407a50
mov eax, dword [esi + 0x18]
add eax, dword [esp + 0x18]
fld dword [eax + 4]
fmul dword [esp + 0x5c]
fld dword [eax]
fmul dword [esp + 0x58]
faddp st(1)
fld dword [eax + 8]
fmul dword [esp + 0x60]
faddp st(1)
fcomp qword [0x442f18]
fnstsw ax
test ah, 5
jp 0x408f4d
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], 1
call fcn.00409220
mov edi, dword [esp + 0x124]
push edi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x90]
push eax
call fcn.004079a0
add esp, 0xc
push eax
push edi
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.004079a0
add esp, 0xc
push eax
push edi
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.004079a0
mov edx, dword [esp + 0x30]
add esp, 0xc
push eax
push edx
jmp 0x408fb1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], 0
call fcn.00409220
mov edi, dword [esp + 0x120]
push edi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.004079a0
add esp, 0xc
push eax
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xac]
push ecx
call fcn.004079a0
add esp, 0xc
push eax
push edi
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0xa4]
push eax
call fcn.004079a0
mov ecx, dword [esp + 0x30]
add esp, 0xc
push eax
push ecx
call fcn.00407f10
add dword [esp + 0x28], 0xc
inc ebp
add esp, 0x10
add ebx, 0x10
cmp ebp, dword [esi + 0xc]
jl 0x408e20
mov ebx, dword [esp + 0x48]
xor eax, eax
cmp dword [esi + 0x1c], eax
mov dword [esp + 0x18], eax
jle 0x40914d
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x20]
mov ecx, dword [eax + edx + 8]
add eax, edx
mov edx, dword [eax + 0xc]
test ecx, ecx
jl 0x40919c
cmp ecx, ebx
jge 0x40919c
test edx, edx
jl 0x40919c
cmp edx, ebx
jge 0x40919c
mov edi, dword [esp + 0x54]
mov ecx, dword [edi + ecx*4]
cmp ecx, dword [edi + edx*4]
je 0x409130
cmp dword [esp + 0x38], 0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [esi + 4]
lea eax, [ecx + ecx*2]
fld dword [edi + eax*4]
lea eax, [edi + eax*4]
fstp dword [esp + 0x20]
lea ecx, [edx + edx*2]
fld dword [eax + 4]
fstp dword [esp + 0x24]
fld dword [eax + 8]
lea eax, [edi + ecx*4]
fstp dword [esp + 0x28]
fld dword [eax]
fstp dword [esp + 0x2c]
fld dword [eax + 4]
fstp dword [esp + 0x30]
fld dword [eax + 8]
fstp dword [esp + 0x34]
jne 0x409084
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0x24]
call fcn.00407a50
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x30]
call fcn.00407a50
mov ebp, dword [esp + 0x124]
push ebp
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x9c]
push edx
call fcn.004079a0
mov edi, dword [esp + 0x12c]
add esp, 0xc
push eax
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xac]
push ecx
call fcn.004079a0
add esp, 0xc
push eax
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.004079a0
mov ebx, dword [esp + 0x30]
add esp, 0xc
push eax
push ebx
call fcn.00407f10
push ebp
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x94]
push edx
call fcn.004079a0
add esp, 0x1c
push eax
push ebp
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.004079a0
add esp, 0xc
push eax
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x98]
push eax
call fcn.004079a0
add esp, 0xc
push eax
push ebx
call fcn.00407f10
mov ebx, dword [esp + 0x58]
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc ecx
add eax, 0x10
cmp ecx, dword [esi + 0x1c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jl 0x408fe2
mov esi, dword [esp + 0x1c]
push 0x4431d8
push esi
call dword [sym.imp.MSVCR90.dll_fprintf]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
mov ecx, dword [esp + 0x60]
push ecx
xor edi, edi
mov dword [esp + 0x124], 0xffffffff
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 0x10
mov eax, edi
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0x10
push str.Invalid_Array_Index
push 0x40
push 0x442f2c
call fcn.00405a00
int3