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

Disassembly:
jmp 0x582d50
sub esp, 0x54
mov eax, dword [0x7b72f0]
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax + 0x140]
mov dword [esp + 8], ecx
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x583215
call fcn.0040c685
mov ecx, dword [esi + 0x50]
test ecx, ecx
mov edx, 1
je 0x582d85
mov dword [ecx + 0x1c], edx
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x582d8f
mov dword [ecx + 0x1c], edx
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x582d99
mov dword [ecx + 0x1c], edx
mov ecx, dword [esi + 0x60]
push edi
mov edi, dword [ecx + 0x24]
test edi, edi
je 0x583207
test al, 4
fldz
fstp dword [esp + 0x10]
fld dword [esp + 0x68]
fst dword [ecx + 0x28]
je 0x583205
test al, 1
mov ebp, dword [esp + 0x64]
je 0x582e5a
mov edx, dword [esi + 0x60]
mov eax, dword [esp + 0x70]
fst dword [edx + 0x28]
test eax, eax
fld dword [ebp]
fsub dword [esi + 0x14]
fstp dword [esp + 0x54]
fld dword [ebp + 4]
fsub dword [esi + 0x18]
fstp dword [esp + 0x58]
je 0x582e06
cmp dword [eax], 4
jne 0x582e06
fld dword [esp + 0x54]
fsub dword [eax + 0x40]
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fsub dword [eax + 0x44]
fstp dword [esp + 0x58]
fld dword [esp + 0x54]
fsub dword [esi + 4]
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fsub dword [esi + 8]
fstp dword [esp + 0x58]
fmul qword [0x6dd478]
fst qword [esp + 0x44]
call fcn.00651ec0
fstp dword [esp + 0x38]
fld qword [esp + 0x44]
call fcn.00651d90
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fmul dword [esp + 0x58]
fld dword [esp + 0x38]
fmul dword [esp + 0x54]
faddp st(1)
fldz
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x10]
jmp 0x582e5c
fstp st(0)
mov eax, dword [ebp]
fld dword [esi]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp + 4]
push ebx
sub esp, 8
mov dword [esi + 0x18], ecx
fstp dword [esp + 4]
mov edx, dword [ebp + 8]
fld dword [esp + 0x1c]
mov ecx, dword [esi + 0x60]
fstp dword [esp]
mov dword [esi + 0x1c], edx
call fcn.00408882
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x5830fb
mov ecx, dword [esi + 0x70]
xor eax, eax
test ecx, ecx
je 0x582ea5
cmp dword [esi + 0x3c], eax
jbe 0x582ea5
mov eax, ecx
mov ecx, dword [esp + 0x70]
push ecx
push ebx
push eax
mov ecx, esi
call fcn.00406a3c
mov edx, dword [edi]
mov ecx, dword [edx + 0x78]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x74], eax
jbe 0x583097
jmp 0x582ed8
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x74]
cmp eax, 5
sbb edi, edi
and edi, eax
lea eax, [edi + edi*2 + 6]
mov ecx, dword [ebx + eax*4 + 4]
lea eax, [ebx + eax*4]
mov ebx, dword [eax]
push ebp
lea edx, [esp + 0x5c]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x14]
push edx
call fcn.0040dedb
mov ebp, dword [eax]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
lea ecx, [edi + edi*2]
mov eax, dword [edx + ecx*4 + 0x20]
add ebp, ebx
add eax, 0xffffffff
cmp eax, 5
mov dword [esp + 0x1c], ebp
ja case.0x582f29.3
jmp dword [eax*4 + 0x583280]
mov eax, dword [esi + 0x50]
test eax, eax
je case.0x582f29.3
cmp dword [esi + 0x10], 0
je case.0x582f29.3
fild dword [esp + 0x1c]
mov dword [eax + 0x1c], 0
mov ecx, dword [esi + 0x50]
lea eax, [esp + 0x24]
fstp dword [esp + 0x24]
push eax
fild dword [esp + 0x24]
fstp dword [esp + 0x2c]
call fcn.00401528
mov dword [esp + 0x70], 1
jmp case.0x582f29.3
mov ecx, dword [esi + 0x54]
test ecx, ecx
je case.0x582f29.3
fild dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
fstp dword [esp + 0x30]
fild dword [esp + 0x24]
fstp dword [esp + 0x34]
call fcn.0040c0c2
mov ecx, dword [esi + 0x54]
call fcn.00405aba
jmp case.0x582f29.3
mov ecx, dword [esi + 0x58]
test ecx, ecx
je case.0x582f29.3
fild dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
fstp dword [esp + 0x38]
fild dword [esp + 0x24]
fstp dword [esp + 0x3c]
call fcn.004043b8
mov ecx, dword [esi + 0x58]
mov dword [ecx + 0x1c], 0
jmp case.0x582f29.3
mov edi, dword [esi + 0x5c]
test edi, edi
je case.0x582f29.3
mov ebx, dword [0x781a18]
add ebx, 1
test bl, 1
mov dword [0x781a18], ebx
je case.0x582f29.3
mov edx, dword [esp + 0x68]
push edx
lea ecx, [esi + 0x14]
call fcn.00404e9e
test eax, eax
je 0x583028
test bl, 0x60
jne 0x583028
and ebp, 0xfffffffe
test bl, 4
mov dword [esp + 0x1c], ebp
je 0x583028
add ebp, 1
mov dword [esp + 0x1c], ebp
cmp dword [esi + 0x28], 0
je case.0x582f29.3
fild dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
fstp dword [esp + 0x40]
fild dword [esp + 0x24]
fstp dword [esp + 0x44]
call fcn.00409ef8
fldz
mov ecx, dword [esi + 0x5c]
fstp dword [ecx + 0x68]
jmp case.0x582f29.3
cmp dword [esi + 0x24], 0
jne 0x583066
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x583066
call fcn.00405c5e
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x24], 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edx
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0x68]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x74], eax
jb 0x582ed0
cmp dword [esp + 0x70], 0
jne 0x5830f4
cmp dword [esi + 0x2c], 0
je 0x5830f4
mov eax, dword [esi + 0x70]
xor edi, edi
test eax, eax
je 0x5830ad
cmp dword [esi + 0x3c], edi
jbe 0x5830ad
mov edi, eax
mov ebx, dword [esi + 0x50]
test ebx, ebx
je 0x5830f4
test edi, edi
je 0x5830f4
mov ecx, dword [esp + 0x10]
push ebp
lea eax, [esp + 0x20]
push eax
call fcn.0040dedb
fild dword [esp + 0x1c]
mov ecx, dword [edi + 0x24]
sar ecx, 1
sub dword [esp + 0x20], ecx
fstp dword [esp + 0x48]
fild dword [esp + 0x20]
lea edx, [esp + 0x48]
mov dword [ebx + 0x1c], 0
mov ecx, dword [esi + 0x50]
push edx
fstp dword [esp + 0x50]
call fcn.00401528
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x60]
fldz
mov ecx, dword [eax + 0x24]
fcom dword [ecx + 8]
pop ebx
fnstsw ax
test ah, 1
jne 0x583119
mov ecx, dword [ecx]
cmp dword [ecx], 0
je 0x583119
fstp dword [esi]
jmp 0x58311b
fstp st(0)
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x583129
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x583137
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x583145
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x583153
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x68]
test eax, eax
je 0x58320b
cmp dword [esi + 0x24], 0
je 0x5831da
fld dword [esp + 0x68]
sub esp, 8
fstp dword [eax + 0x28]
mov ecx, dword [esi + 0x68]
fld1
fstp dword [esp + 4]
fldz
fstp dword [esp]
call fcn.00408882
mov edx, dword [esi + 0x70]
mov ecx, dword [esi + 0x20]
xor edi, edi
test edx, edx
je 0x583199
cmp ecx, dword [esi + 0x3c]
jae 0x583199
imul ecx, ecx, 0x54
add ecx, edx
mov edi, ecx
push 0
push eax
push edi
mov ecx, esi
call fcn.00406a3c
mov eax, dword [edi + 0x18]
mov ecx, dword [esi + 0x34]
add ecx, dword [edi + 0x1c]
add eax, dword [esi + 0x30]
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
mov ecx, dword [esi + 0x68]
call fcn.00409561
cmp eax, 1
jne 0x58320b
mov ecx, esi
mov dword [esi + 0x24], 0
call fcn.00401456
pop edi
jmp 0x583219
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x20]
xor ecx, ecx
test edx, edx
je 0x5831f2
cmp eax, dword [esi + 0x3c]
jae 0x5831f2
imul eax, eax, 0x54
add eax, edx
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 0xffffffffffffffff
call eax
mov ecx, esi
call fcn.00401456
pop edi
jmp 0x583219
fstp st(0)
mov ebp, dword [esp + 0x64]
mov ecx, esi
call fcn.00401456
pop edi
jmp 0x583219
mov ebp, dword [esp + 0x60]
mov ecx, dword [esi + 0x4c]
call fcn.006289e0
fld dword [ebp]
mov ecx, dword [esp + 8]
fstp dword [esp + 0x48]
fld dword [ebp + 4]
push ecx
mov ecx, dword [esi + 0x4c]
fstp dword [esp + 0x50]
fld dword [esp + 0x68]
sub esp, 8
fchs
lea edx, [esp + 0x54]
fstp dword [esp + 4]
fld dword [ebp + 8]
fstp dword [esp]
push edx
call fcn.006292f0
fldz
fst dword [esp + 0x50]
mov eax, dword [esp + 0x50]
fst dword [esp + 0x54]
mov ecx, dword [esp + 0x54]
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x58]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
pop esi
pop ebp
add esp, 0x54
ret 0x10