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

Disassembly:
mov al, byte [0xf5b534]
sub esp, 0x10c
test al, al
push ebx
push ebp
push esi
push edi
je 0x47f1e8
mov ebp, dword [esp + 0x124]
mov ecx, dword [esp + 0x120]
mov eax, dword [ebp + 4]
mov ecx, dword [ecx + 0x18]
movsx edx, word [eax]
lea edx, [edx + edx*2]
lea edx, [ecx + edx*4]
mov esi, dword [edx]
mov dword [esp + 0x28], esi
mov esi, dword [edx + 4]
mov dword [esp + 0x2c], esi
mov edx, dword [edx + 8]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x28]
movsx eax, word [eax + 2]
push edx
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
lea eax, [esp + 0xe8]
push eax
mov esi, dword [ecx]
mov dword [esp + 0xa8], esi
mov edi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
call fcn.004e34c0
fld dword [esp + 0x100]
fmul dword [0x51dc40]
add esp, 8
fst dword [esp + 0x3c]
fcomp dword [0x51d85c]
fnstsw ax
test ah, 1
je 0x47eddc
mov dword [esp + 0x3c], 0x3dcccccd
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x120]
movsx edx, word [eax]
mov ecx, dword [ecx + 0x18]
lea edx, [edx + edx*2]
lea edx, [ecx + edx*4]
mov ebp, dword [edx]
mov dword [esp + 0x1c], ebp
mov ebp, dword [edx + 4]
mov dword [esp + 0x20], ebp
mov edx, dword [edx + 8]
mov dword [esp + 0x24], edx
movsx edx, word [eax + 6]
lea edx, [edx + edx*2]
lea edx, [ecx + edx*4]
mov ebp, dword [edx]
mov dword [esp + 0x10], ebp
fld dword [esp + 0x10]
fsub dword [esp + 0x1c]
mov ebp, dword [edx + 4]
mov dword [esp + 0x14], ebp
mov edx, dword [edx + 8]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fsub dword [esp + 0x20]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x94], edx
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fsub dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x98], edx
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x9c], edx
movsx edx, word [eax + 2]
movsx eax, word [eax + 4]
lea edx, [edx + edx*2]
lea eax, [eax + eax*2]
lea edx, [ecx + edx*4]
lea ecx, [ecx + eax*4]
mov ebp, dword [edx]
mov dword [esp + 0x1c], ebp
mov ebp, dword [edx + 4]
mov dword [esp + 0x20], ebp
mov edx, dword [edx + 8]
mov dword [esp + 0x24], edx
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x94]
fld dword [esp + 0x10]
fsub dword [esp + 0x1c]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fsub dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fsub dword [esp + 0x28]
fstp dword [esp + 0x1c]
call fcn.004cb4f0
fdiv dword [esp + 0x40]
add esp, 4
fadd qword [0x51f258]
fadd qword [0x51f240]
call fcn.004b6898
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x98]
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ecx
fild dword [esp + 0x34]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
fld st(0)
fld dword [esp + 0x94]
fdiv st(1)
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x60], edx
test eax, eax
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fdiv st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x48]
fdiv st(1)
fstp dword [esp + 0x48]
fstp st(0)
fld st(0)
fld dword [esp + 0x10]
fdiv st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x5c]
fdiv st(1)
fstp dword [esp + 0x5c]
fld dword [esp + 0x60]
fdiv st(1)
fstp dword [esp + 0x60]
fstp st(0)
jle 0x47f1e6
fstp dword [esp + 0x38]
mov dword [esp + 0x34], eax
fld dword [esp + 0xa0]
fsub dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fsub dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fsub dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
call fcn.004cb4f0
fdiv dword [esp + 0x40]
add esp, 4
fadd qword [0x51f258]
fadd qword [0x51f240]
call fcn.004b6898
fld dword [esp + 0x1c]
fdiv dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
fstp dword [esp + 0x88]
fld dword [esp + 0x8c]
fdiv dword [esp + 0x38]
fstp dword [esp + 0x8c]
fld dword [esp + 0x90]
fdiv dword [esp + 0x38]
fstp dword [esp + 0x90]
jle 0x47f11a
mov ebp, eax
lea eax, [esp + 0x70]
lea ecx, [esp + 0xac]
push eax
push ecx
call fcn.004e34c0
add esp, 8
test al, al
jne 0x47f0b6
lea edx, [esp + 0xac]
push edx
call fcn.004e35b0
fld dword [esp + 0xb4]
call fcn.004b6898
fld dword [esp + 0xb0]
push eax
call fcn.004b6898
push eax
push 0xff6464
call fcn.00484720
add esp, 0x10
fld dword [esp + 0x70]
fadd dword [esp + 0x88]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x78]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
fstp dword [esp + 0x64]
fld dword [esp + 0x68]
fadd dword [esp + 0x8c]
mov eax, dword [esp + 0x64]
dec ebp
mov dword [esp + 0x70], eax
fstp dword [esp + 0x68]
fld dword [esp + 0x6c]
fadd dword [esp + 0x90]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x74], ecx
fstp dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x78], edx
jne 0x47f069
fld dword [esp + 0x28]
fadd dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
fstp dword [esp + 0x7c]
fld dword [esp + 0x80]
fadd dword [esp + 0x44]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
fstp dword [esp + 0x80]
fld dword [esp + 0x84]
fadd dword [esp + 0x48]
mov ecx, dword [esp + 0x80]
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
fstp dword [esp + 0x84]
fld dword [esp + 0xa0]
fadd dword [esp + 0x58]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x30], edx
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fadd dword [esp + 0x5c]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0xa0], esi
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fadd dword [esp + 0x60]
mov edi, dword [esp + 0x50]
fstp dword [esp + 0x54]
mov ebx, dword [esp + 0x54]
jne 0x47ef86
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret