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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x188
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x47e1d0
mov ebx, dword [esp + 0x198]
xor ecx, ecx
mov dword [esp + 0xa0], ecx
cmp dword [ebx + 0x38], edi
jle 0x47e23e
mov edx, eax
push ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
mov ebp, dword [ebx + 0xd8]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x1a4]
add ebp, edi
test ecx, eax
je 0x47e196
mov esi, dword [ebp + 0x138]
cmp esi, 1
jg 0x47da3d
xor eax, eax
mov dword [ebp + 0x110], eax
mov dword [ebp + 0x10c], eax
mov dword [ebp + 0x108], eax
jmp 0x47dbea
fld dword [edx]
fcomp qword [0x51f240]
fnstsw ax
test ah, 0x40
je 0x47da74
mov eax, dword [ebp + 0x11c]
lea edx, [esi + esi*2]
lea ecx, [eax + edx*4 - 0xc]
lea edx, [ebp + 0x108]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
jmp 0x47dbe8
mov edi, dword [ebp + 0x148]
mov eax, dword [ebp + 0x14c]
sub eax, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul dword [edx]
fiadd dword [esp + 0x10]
fld st(0)
call fcn.004b6898
mov edx, dword [ebp + 0x124]
mov ecx, eax
sub ecx, edi
xor eax, eax
mov ax, word [edx + ecx*2]
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x47dadc
mov eax, dword [ebp + 0x11c]
lea edx, [esi + esi*2]
fstp st(0)
lea ecx, [eax + edx*4 - 0xc]
lea edx, [ebp + 0x108]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
jmp 0x47dbe4
mov ecx, dword [ebp + 0x130]
lea esi, [eax + eax*2]
shl esi, 2
mov edx, dword [ecx + eax*4]
mov ecx, dword [ecx + eax*4 + 4]
mov dword [esp + 0x10], edx
sub ecx, edx
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x11c]
lea eax, [eax + eax*2 + 3]
fsubr st(1)
fidiv dword [esp + 0x10]
lea edx, [esi + ecx]
lea ecx, [ecx + eax*4]
push edx
lea edx, [esp + 0xdc]
push ecx
push edx
fstp dword [esp + 0x20]
fstp st(0)
call fcn.004cb2b0
fld dword [esp + 0xe4]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xec]
fmul dword [esp + 0x20]
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x9c], ecx
fld dword [esp + 0x9c]
fmul dword [esp + 0x20]
mov dword [esp + 0xa0], edx
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 0x11c]
add esp, 0xc
add esi, eax
fstp dword [esp + 0x90]
fld dword [esp + 0x94]
fmul dword [esp + 0x14]
mov eax, dword [esi]
mov dword [esp + 0x20], eax
lea eax, [ebp + 0x108]
mov ecx, dword [esi + 4]
fstp dword [esp + 0x94]
fld dword [esp + 0x20]
fadd st(1)
mov edx, dword [esi + 8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
fstp st(0)
fld dword [esp + 0x24]
fadd dword [esp + 0x90]
mov dword [eax], ecx
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fadd dword [esp + 0x94]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov edi, dword [esp + 0x18]
xor eax, eax
test byte [ebp + 0x13c], 3
jne 0x47e065
mov esi, dword [ebp + 0x134]
cmp esi, 1
jg 0x47dc1c
mov word [ebp + 0xdc], ax
mov word [ebp + 0xde], ax
mov word [ebp + 0xe0], ax
jmp 0x47e196
mov ecx, dword [esp + 0x1c]
fld dword [ecx]
fcomp qword [0x51f240]
fnstsw ax
test ah, 0x40
je 0x47dc52
mov edx, dword [ebx + 0xd8]
lea ecx, [esi + esi*8]
lea eax, [edx + edi]
mov edx, dword [edx + edi + 0x120]
add eax, 0xdc
lea ecx, [edx + ecx*4 - 0x24]
push ecx
push eax
jmp 0x47e18e
mov edi, dword [ebp + 0x140]
mov edx, dword [ebp + 0x144]
sub edx, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul dword [ecx]
fiadd dword [esp + 0x14]
fld st(0)
call fcn.004b6898
mov edx, dword [ebp + 0x128]
mov ecx, eax
sub ecx, edi
xor eax, eax
mov ax, word [edx + ecx*2]
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x47dcc3
mov edx, dword [ebx + 0xd8]
mov eax, dword [esp + 0x18]
add eax, edx
lea ecx, [esi + esi*8]
fstp st(0)
mov edx, dword [eax + 0x120]
add eax, 0xdc
lea ecx, [edx + ecx*4 - 0x24]
push ecx
push eax
call fcn.004cc360
mov edi, dword [esp + 0x20]
add esp, 8
jmp 0x47e196
mov ecx, dword [ebp + 0x12c]
lea edi, [esp + 0x108]
mov edx, dword [ecx + eax*4]
mov ecx, dword [ecx + eax*4 + 4]
mov dword [esp + 0x10], edx
sub ecx, edx
fisub dword [esp + 0x10]
mov edx, dword [ebp + 0x120]
mov dword [esp + 0x10], ecx
lea ecx, [eax + eax*8]
lea eax, [eax + eax*8 + 9]
fidiv dword [esp + 0x10]
lea ebx, [edx + ecx*4]
mov ecx, 9
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + eax*4]
mov ecx, 9
lea edi, [esp + 0xe4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0xec]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0xf0]
mov edx, dword [esp + 0xf4]
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0x100]
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x104]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
fld dword [esp + 0xe4]
fsub dword [esp + 0x108]
fstp dword [esp + 0x44]
fld dword [esp + 0x48]
fsub dword [esp + 0x10c]
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fsub dword [esp + 0x110]
fstp dword [esp + 0x4c]
fld dword [esp + 0xf0]
fsub dword [esp + 0x114]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fsub dword [esp + 0x118]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fsub dword [esp + 0x11c]
fstp dword [esp + 0x34]
fld dword [esp + 0xfc]
fsub dword [esp + 0x120]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fsub dword [esp + 0x124]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x5c], ecx
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fsub dword [esp + 0x128]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
fstp dword [esp + 0x40]
fld dword [esp + 0x38]
fmul st(1)
mov eax, dword [esp + 0x40]
mov dword [esp + 0x64], eax
fstp dword [esp + 0x5c]
fld dword [esp + 0x60]
fmul st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fmul st(1)
fstp dword [esp + 0x64]
fld dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
fmul st(1)
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fmul st(1)
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
mov eax, dword [esp + 0x4c]
mov ecx, 9
mov dword [esp + 0xa0], eax
mov esi, ebx
fstp dword [esp + 0x78]
fld dword [esp + 0x7c]
fmul st(1)
lea edi, [esp + 0xa8]
rep movsd dword es:[edi], dword [esi]
fstp dword [esp + 0x7c]
fld dword [esp + 0x44]
fmul st(1)
fstp dword [esp + 0x98]
fld dword [esp + 0x9c]
fmul st(1)
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
fstp dword [esp + 0x9c]
mov dword [esp + 0x80], ecx
mov eax, dword [esp + 0xb0]
fmul dword [esp + 0xa0]
fld dword [esp + 0xa8]
fadd dword [esp + 0x98]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
fstp dword [esp + 0x80]
fld dword [esp + 0x84]
fadd dword [esp + 0x9c]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x50], ecx
fstp dword [esp + 0x84]
fld dword [esp + 0x88]
fadd st(1)
mov edx, dword [esp + 0x84]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x54], edx
fstp dword [esp + 0x88]
mov eax, dword [esp + 0x88]
fstp st(0)
fld dword [esp + 0xb4]
fadd dword [esp + 0x74]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x58], eax
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fadd dword [esp + 0x78]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x68], ecx
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fadd dword [esp + 0x7c]
mov edx, dword [esp + 0x54]
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x6c], edx
fstp dword [esp + 0x58]
mov eax, dword [esp + 0x58]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x70], eax
fld dword [esp + 0xc0]
fadd dword [esp + 0x5c]
lea esi, [esp + 0xa8]
lea edi, [esp + 0x150]
add ebp, 0xdc
fstp dword [esp + 0x68]
fld dword [esp + 0x6c]
fadd dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xc0], ecx
mov ecx, 9
fstp dword [esp + 0x6c]
fld dword [esp + 0x70]
fadd dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xc4], edx
fstp dword [esp + 0x70]
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc8], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x150]
push ecx
push ebp
call fcn.004cc360
mov ebx, dword [esp + 0x1a4]
mov edi, dword [esp + 0x20]
add esp, 8
jmp 0x47e196
mov edx, dword [ebx + 0xd8]
mov eax, dword [edx + edi + 0x13c]
lea esi, [edx + edi]
test al, 1
je 0x47e121
fld dword [0x544d0c]
fmul dword [esi + 0x150]
fld st(0)
call fcn.004b6898
mov dword [esp + 0x10], eax
mov al, byte [ebx + 8]
fisub dword [esp + 0x10]
test al, al
je 0x47e0c0
mov eax, dword [esi + 0x114]
add eax, 0xc
mov ecx, dword [eax]
mov dword [esp + 0xcc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xd0], edx
mov eax, dword [eax + 8]
jmp 0x47e0d9
add esi, 0x40
mov ecx, dword [esi]
mov dword [esp + 0xcc], ecx
mov edx, dword [esi + 4]
mov dword [esp + 0xd0], edx
mov eax, dword [esi + 8]
fmul dword [0x52317c]
lea ecx, [esp + 0xcc]
mov dword [esp + 0xd4], eax
push ecx
call fcn.004b6898
lea edx, [esp + 0x178]
push eax
push edx
call fcn.0047a2f0
mov ecx, dword [ebx + 0xd8]
lea eax, [esp + 0x180]
push eax
lea edx, [ecx + edi + 0xdc]
push edx
call fcn.004cc360
add esp, 0x14
jmp 0x47e196
test al, 2
je 0x47e196
mov al, byte [ebx + 8]
test al, al
je 0x47e152
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x114]
add eax, 0xc
fld dword [ecx]
fmul dword [0x52317c]
push eax
call fcn.004b6898
lea edx, [esp + 0x130]
push eax
push edx
jmp 0x47e170
mov eax, dword [esp + 0x1c]
add esi, 0x40
push esi
fld dword [eax]
fmul dword [0x52317c]
call fcn.004b6898
lea ecx, [esp + 0x130]
push eax
push ecx
call fcn.0047a2f0
mov eax, dword [ebx + 0xd8]
add esp, 0xc
lea edx, [esp + 0x12c]
lea ecx, [eax + edi + 0xdc]
push edx
push ecx
call fcn.004cc360
add esp, 8
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x38]
inc ecx
add edx, 4
add edi, 0x164
cmp ecx, eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
jl 0x47d9fb
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x188
ret
mov ecx, dword [esp + 0x198]
xor edx, edx
cmp dword [ecx + 0x38], edi
jle 0x47e23e
xor eax, eax
mov esi, dword [ecx + 0xd8]
inc edx
mov dword [esi + eax + 0x108], edi
mov esi, dword [ecx + 0xd8]
mov dword [esi + eax + 0x10c], edi
mov esi, dword [ecx + 0xd8]
mov dword [esi + eax + 0x110], edi
mov esi, dword [ecx + 0xd8]
mov word [esi + eax + 0xdc], di
mov esi, dword [ecx + 0xd8]
mov word [esi + eax + 0xde], di
mov esi, dword [ecx + 0xd8]
mov word [esi + eax + 0xe0], di
mov esi, dword [ecx + 0x38]
add eax, 0x164
cmp edx, esi
jl 0x47e1e0
pop edi
pop esi
pop ebx
add esp, 0x188
ret