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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
fild dword [esi + 4]
mov edi, dword [esi + 0x24]
push edi
fstp dword [ebp - 0x18]
fld dword [0x53b27c]
fdiv dword [ebp - 0x18]
fstp dword [ebp - 0x78]
call fcn.0050f3c0
mov dword [ebp - 0x94], eax
lea eax, [ebp + 8]
lea ecx, [ebp - 4]
push eax
push ecx
push edi
call fcn.0050f110
mov eax, dword [ebp - 4]
add esp, 0x10
xor edx, edx
xor ecx, ecx
cmp eax, 1
jle 0x513089
inc ecx
mov edi, 1
shl edi, cl
cmp edi, eax
jl 0x51307d
mov edi, dword [ebp + 0x10]
dec eax
and edi, 0xffff
mov dword [ebp - 0x7c], eax
mov dword [ebp + 0x10], edi
mov eax, dword [ebp + 8]
fild dword [ebp + 0x10]
dec eax
mov ebx, dword [esi]
shl eax, cl
fstp dword [ebp - 0x1c]
fld dword [ebp - 0x18]
fdiv dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [esi + 0x48]
mov dword [ebp - 0xc], eax
mov ecx, dword [esi + 0x3c]
test bl, 8
mov dword [ebp - 0x34], ecx
fstp dword [ebp + 0x10]
fld dword [esi + 0x70]
fsub dword [esi + 0x44]
fmul dword [ebp + 0x10]
fstp dword [ebp - 0x4c]
fld dword [esi + 0x74]
fsub dword [esi + 0x48]
fmul dword [ebp + 0x10]
fstp dword [ebp - 0x20]
fld dword [esi + 0x68]
fsub dword [esi + 0x3c]
fmul dword [ebp + 0x10]
fstp dword [ebp - 0x58]
fild dword [ebp - 4]
fstp dword [ebp - 8]
fld dword [ebp - 8]
fmul dword [ebp - 0x14]
fstp dword [ebp - 0x14]
fld dword [ebp - 8]
fmul dword [ebp - 0x4c]
fstp dword [ebp - 0x4c]
fild dword [ebp + 8]
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fmul dword [ebp - 0xc]
fstp dword [ebp - 0xc]
fld dword [ebp + 0x10]
fmul dword [ebp - 0x20]
fstp dword [ebp - 0x20]
fld dword [ebp - 8]
fmul dword [ebp - 0xc]
fstp dword [ebp - 0xc]
fld dword [ebp - 8]
fmul dword [ebp - 0x20]
fstp dword [ebp - 0x20]
je 0x5131a3
mov eax, ebx
sar eax, 4
and eax, 3
cmp eax, 3
ja case.default.0x51313d
jmp dword [eax*4 + 0x5134d0]
fld dword [0x53b27c]
fsub dword [esi + 0x58]
fmul dword [0x53c9ac]
call fcn.00529c7c
mov edx, dword [esi + 0x58]
mov dword [ebp + 0x10], edx
xor edx, edx
jmp 0x513180
mov eax, 0x4000
mov dword [ebp + 0x10], 0xbf800000
jmp 0x513180
mov ecx, dword [esi + 0x58]
mov eax, 0x4000
mov dword [ebp + 0x10], ecx
jmp 0x513180
mov eax, dword [ebp + 0xc]
fld dword [ebp + 0x10]
fmul dword [0x53c9ac]
test bl, 0x40
fstp dword [ebp + 0x10]
je 0x51319a
mov dword [ebp - 0x2c], 0x512340
jmp 0x5131c0
mov dword [ebp - 0x2c], 0x5124f0
jmp 0x5131c0
test bl, 0x40
mov dword [ebp + 0x10], 0x46800000
mov dword [ebp - 0x2c], 0x512bc0
jne 0x5131bd
mov dword [ebp - 0x2c], 0x512d20
mov eax, dword [ebp + 0xc]
fld dword [ebp + 0x10]
test bl, 1
je 0x51322d
fdiv dword [ebp - 0x1c]
fstp dword [ebp - 0x10]
fld dword [ebp + 0x10]
fmul dword [esi + 0x4c]
fstp dword [ebp - 0x30]
fld dword [ebp + 0x10]
fmul dword [esi + 0x54]
fstp dword [ebp - 0x38]
fld dword [ebp + 0x10]
fmul dword [esi + 0x50]
fstp dword [ebp - 0x28]
fld dword [esi + 0x78]
fsub dword [esi + 0x4c]
fmul dword [ebp - 0x10]
fstp dword [ebp - 0x48]
fld dword [esi + 0x80]
fsub dword [esi + 0x54]
fmul dword [ebp - 0x10]
fstp dword [ebp - 0x1c]
fld dword [esi + 0x7c]
fsub dword [esi + 0x50]
fmul dword [ebp - 0x10]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x48]
fistp dword [ebp + 0x10]
mov ebx, dword [ebp + 0x10]
fld dword [ebp - 0x1c]
fistp dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
fld dword [ebp - 0x18]
fistp dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
jmp 0x513254
fmul dword [esi + 0x18]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
xor ebx, ebx
xor ecx, ecx
xor edx, edx
fstp dword [ebp - 0x30]
fld dword [ebp + 0x10]
fmul dword [esi + 0x1c]
fstp dword [ebp - 0x38]
fld dword [ebp + 0x10]
fmul dword [esi + 0x20]
fstp dword [ebp - 0x28]
fld dword [0x53bd80]
fdiv dword [ebp - 0x34]
test edi, edi
mov dword [ebp - 0x10], edi
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fmul dword [ebp - 0x14]
fstp dword [ebp - 0x44]
fld dword [ebp + 0x10]
fmul dword [ebp - 0xc]
fstp dword [ebp - 0x3c]
je 0x5134c6
shl ecx, 0x10
and edx, 0xffff
and ebx, 0xffff
or ecx, edx
mov edx, eax
and edx, 0xffff
mov dword [ebp - 0x60], ecx
shl eax, 0x10
or eax, edx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x84], eax
jmp 0x5132b2
mov ecx, dword [ebp - 0x60]
mov edi, dword [esi + 4]
mov eax, dword [ebp - 0x10]
cmp edi, eax
mov dword [ebp - 0x50], edi
jg 0x513300
fld dword [ebp - 0x14]
fadd dword [ebp - 0x4c]
mov edx, dword [ebp - 0x78]
mov dword [ebp - 8], edx
fstp dword [ebp - 0x14]
fld dword [ebp - 0xc]
fadd dword [ebp - 0x20]
fstp dword [ebp - 0xc]
fld dword [ebp - 0x34]
fadd dword [ebp - 0x58]
fstp dword [ebp - 0x34]
fld dword [0x53bd80]
fdiv dword [ebp - 0x34]
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fmul dword [ebp - 0x14]
fstp dword [ebp - 0x40]
fld dword [ebp + 0x10]
fmul dword [ebp - 0xc]
fstp dword [ebp + 0x10]
jmp 0x51334a
fld dword [0x53bd80]
fdiv dword [esi + 0x68]
mov edi, eax
mov dword [ebp - 0x50], edi
fstp dword [ebp + 0x10]
fild dword [ebp - 4]
fstp dword [ebp - 8]
fld dword [ebp - 8]
fmul dword [esi + 0x70]
fmul dword [ebp + 0x10]
fstp dword [ebp - 0x40]
fild dword [ebp + 8]
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
fmul dword [esi + 0x74]
fmul dword [ebp - 8]
fmul dword [ebp + 0x10]
fstp dword [ebp + 0x10]
fild dword [ebp - 0x10]
fstp dword [ebp - 0x24]
fld dword [0x53b27c]
fdiv dword [ebp - 0x24]
fstp dword [ebp - 8]
fld dword [ebp - 0x40]
fsub dword [ebp - 0x44]
fmul dword [ebp - 8]
fstp dword [ebp - 0x24]
fld dword [ebp + 0x10]
fsub dword [ebp - 0x3c]
fmul dword [ebp - 8]
fstp dword [ebp - 0x88]
fld dword [ebp - 0x44]
fistp dword [ebp - 0x80]
fld dword [ebp - 0x3c]
fistp dword [ebp - 0x68]
fld dword [ebp - 0x24]
fistp dword [ebp - 0x90]
fld dword [ebp - 0x88]
fistp dword [ebp - 0x70]
fld dword [ebp - 0x30]
fistp dword [ebp - 0x64]
fld dword [ebp - 0x38]
fistp dword [ebp - 0x5c]
fld dword [ebp - 0x28]
fistp dword [ebp - 0x54]
mov eax, dword [0xadc4e4]
test al, 7
je 0x5133a3
and al, 0xf8
add eax, 8
lea edx, [eax + 0x50]
test al, 7
mov dword [0xadc4e4], edx
jne 0x5133b7
cmp eax, 0x28284f8
jb 0x5133b9
xor eax, eax
mov edx, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x5c]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x80]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x70]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x90]
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0x54]
and edx, 0xffff
mov dword [eax + 8], ecx
shl ebx, 0x10
mov ecx, dword [ebp - 0x6c]
or edx, ebx
mov dword [eax], edx
mov edx, dword [ebp - 0x64]
and edx, 0xffff
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x74]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x8c]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x84]
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x94]
xor ecx, ecx
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x34], ecx
mov cx, word [ebp + 0xc]
mov word [eax + 0x4a], di
mov word [eax + 0x48], cx
mov dword [eax + 0x44], edx
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
test dl, 0x48
je 0x513457
mov ebx, dword [ecx + 0xc]
mov dword [eax + 0x40], ebx
mov dword [ecx + 0xc], eax
test dl, 8
je 0x51347a
or byte [ecx], 1
jmp 0x51347a
mov edx, dword [ecx + 8]
mov dword [eax + 0x40], edx
mov dword [ecx + 8], eax
mov dx, word [eax + 0x4a]
add word [ecx + 2], dx
xor ecx, ecx
mov cx, word [eax + 0x4a]
mov eax, dword [0x2e096dc]
sub eax, ecx
mov dword [0x2e096dc], eax
fild dword [ebp - 0x50]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fmul dword [ebp - 0x48]
mov eax, dword [ebp - 0x10]
add ecx, edi
sub eax, edi
mov dword [ebp - 0x44], edx
fadd dword [ebp - 0x30]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x10], eax
fstp dword [ebp - 0x30]
fld dword [ebp + 0x10]
fmul dword [ebp - 0x1c]
fadd dword [ebp - 0x38]
fstp dword [ebp - 0x38]
fld dword [ebp + 0x10]
fmul dword [ebp - 0x18]
fadd dword [ebp - 0x28]
fstp dword [ebp - 0x28]
jne 0x5132af
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret