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

Disassembly:
sub esp, 0x64
mov ecx, dword [0x8999b8]
push ebx
push ebp
mov ebp, dword [esp + 0x70]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x1c]
push esi
mov esi, dword [esp + 0x78]
imul esi, esi, 0x38
add esi, eax
mov eax, dword [0x8999a0]
push edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
jmp 0x404d50
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
jmp 0x404d50
mov dword [eax*4 + 0x899560], ecx
mov ecx, dword [esi]
inc eax
test cl, 0x40
mov dword [esp + 0x78], 0
mov dword [0x8999a0], eax
je 0x404d76
mov dword [0x8999b8], 7
mov eax, dword [esi + 0x1c]
test eax, eax
jl 0x40500b
mov edi, dword [edx + 0x10]
shl eax, 6
add eax, edi
test ch, 8
mov edi, eax
je 0x404fd3
mov eax, dword [0x89b564]
mov ebx, dword [0x79f574]
push eax
push 0x624bec
lea ecx, [esp + 0x40]
push ecx
call fcn.0043939a
mov edx, dword [0x89b564]
push edx
push 0x624bf8
lea eax, [esp + 0x64]
push eax
call fcn.0043939a
fld dword [esp + 0x38]
fsub dword [esp + 0x5c]
mov dword [esp + 0x3c], 0
lea ecx, [ebx + 0xf8]
add ebx, 0x104
fstp dword [esp + 0x38]
fld dword [esp + 0x40]
fsub dword [esp + 0x64]
fstp dword [esp + 0x40]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x20], edx
fld dword [esp + 0x20]
mov edx, dword [ebx]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x50], edx
fsub dword [esp + 0x50]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 8]
fstp dword [esp + 0x20]
mov dword [esp + 0x58], ecx
fld dword [esp + 0x28]
mov dword [esp + 0x54], eax
fsub dword [esp + 0x58]
mov dword [esp + 0x24], 0
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fsqrt
fcom qword [0x6282a8]
fnstsw ax
test ah, 0x41
jne 0x404e80
fdivr dword [0x62806c]
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [0x619a34]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul st(1)
fstp dword [esp + 0x28]
mov eax, dword [0x89b568]
fstp st(0)
mov ecx, dword [0x89b56c]
inc eax
cmp eax, ecx
mov dword [0x89b568], eax
jge 0x404eae
mov eax, dword [0x89b564]
push eax
push edi
add eax, 0x40
push eax
call fcn.00439394
add dword [0x89b564], 0x40
fld dword [esp + 0x28]
fmul dword [esp + 0x3c]
fld dword [esp + 0x40]
fmul dword [esp + 0x24]
fsubp st(1)
fstp dword [esp + 0x44]
mov edx, dword [esp + 0x44]
fld dword [esp + 0x40]
mov dword [esp + 0x2c], edx
fmul dword [esp + 0x20]
fld dword [esp + 0x28]
fmul dword [esp + 0x38]
fsubp st(1)
fstp dword [esp + 0x48]
mov eax, dword [esp + 0x48]
fld dword [esp + 0x38]
mov dword [esp + 0x30], eax
fmul dword [esp + 0x24]
fld dword [esp + 0x20]
fmul dword [esp + 0x3c]
fsubp st(1)
fstp dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
fld dword [esp + 0x28]
mov dword [esp + 0x34], ecx
fmul dword [esp + 0x40]
fld dword [esp + 0x20]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [esp + 0x3c]
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
faddp st(1)
fld st(0)
fabs
fcomp dword [0x6281f0]
fnstsw ax
test ah, 1
jne 0x404faa
fsqrt
fst dword [esp + 0x78]
fcomp qword [0x6282a8]
fnstsw ax
test ah, 0x41
jne 0x404f92
fld dword [0x62806c]
fdiv dword [esp + 0x78]
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0x34]
fstp st(0)
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
push edx
push eax
lea eax, [esp + 0x34]
call fcn.0040a580
add esp, 8
jmp 0x404fff
fstp st(0)
fld dword [esp + 0x18]
fcomp dword [0x619a34]
fnstsw ax
test ah, 5
jp 0x404fff
push 0xbf800000
push 0
mov eax, 0x624be0
call fcn.0040a580
add esp, 8
jmp 0x404fff
mov eax, dword [0x89b568]
mov ecx, dword [0x89b56c]
inc eax
cmp eax, ecx
mov dword [0x89b568], eax
jge 0x404fff
mov eax, dword [0x89b564]
push eax
push edi
add eax, 0x40
push eax
call fcn.00439394
add dword [0x89b564], 0x40
mov eax, 1
mov dword [ebp + 0x40], eax
mov dword [esp + 0x78], eax
lea ecx, [esp + 0x1c]
push ecx
push esi
lea ebx, [esp + 0x70]
call fcn.00404b00
add esp, 8
test eax, eax
je 0x405093
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + edx*4 + 0x28]
test eax, eax
jl 0x40507c
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x70]
lea eax, [edx + eax*8]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp], ecx
mov dword [ebp + 0x18], esi
mov ecx, dword [eax]
mov ebx, dword [eax + 0x14]
mov edx, dword [eax + 4]
mov edi, ecx
imul edi, edi, 0x3c
add edi, ebx
cmp ecx, edx
jge 0x40507c
mov edx, dword [eax + 0x10]
mov dword [edx + ecx*4], edi
mov ecx, dword [eax]
inc ecx
mov edx, ebp
mov dword [eax], ecx
call fcn.00404a80
mov ecx, 0xf
mov esi, ebp
mov dword [ebp + 4], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x20]
test eax, eax
jl 0x405093
cmp eax, dword [esp + 0x7c]
je 0x405093
push eax
push ebp
call fcn.00404d10
add esp, 8
mov esi, dword [esi + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x1c]
mov eax, esi
imul eax, eax, 0x38
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4050c6
dec dword [0x89b568]
js 0x4050bf
sub dword [0x89b564], 0x40
mov dword [ebp + 0x40], 1
mov eax, dword [0x8999a0]
mov ecx, dword [eax*4 + 0x89955c]
dec eax
test esi, esi
mov dword [0x8999a0], eax
mov dword [0x8999b8], ecx
jge 0x404d3f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret