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

Disassembly:
sub esp, 0x98
push ebx
mov ebx, dword [esp + 0xa4]
xor eax, eax
push ebp
push esi
cmp ebx, eax
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], eax
jle 0x47c109
mov edi, dword [esp + 0xac]
mov ax, word [edi + 0xe]
and eax, 0x4000
test ax, ax
jne 0x47c109
mov ecx, dword [edi]
mov dword [esp + 0x10], ecx
mov edx, dword [edi + 4]
mov dword [esp + 0x14], edx
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x58]
push ecx
push edx
mov dword [esp + 0x20], eax
call fcn.0047b8b0
mov ecx, dword [0x751894]
mov dword [esp + 0x6c], 0x3f800000
lea eax, [esp + 0x60]
mov edx, dword [ecx + 0x14]
push eax
add edx, 0x30
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00415740
lea ecx, [esp + 0x3c]
push ecx
call fcn.0047c120
mov ebp, eax
mov esi, 1
mov ecx, ebp
add esp, 0x18
shl esi, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x24], esi
lea edx, [esi + ecx]
cmp edx, ebx
jle 0x47bf36
mov esi, ebx
sub esi, ecx
mov dword [esp + 0x24], esi
fld dword [esp + 0x30]
fcomp dword [0x751864]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
fnstsw ax
test ah, 0x41
je 0x47c0e9
fld dword [esp + 0x30]
fcomp dword [0x4b2f6c]
fnstsw ax
test ah, 1
jne 0x47c0e9
cmp esi, 1
lea ebx, [edi + 0x10]
mov dword [esp + 0x54], esi
jle 0x47bfa9
mov ax, word [edi + 0xe]
lea edx, [esi - 1]
and eax, 0x3ff
xor ecx, ecx
test edx, edx
jle 0x47bfa9
mov bp, word [ebx + 0xe]
and ebp, 0x3ff
cmp eax, ebp
jne 0x47bf9e
add ebx, 0x10
inc ecx
cmp ecx, edx
jl 0x47bf86
jmp 0x47bfa5
lea esi, [ecx + 1]
mov dword [esp + 0x24], esi
mov ebp, dword [esp + 0x40]
mov ecx, dword [edi]
mov dword [esp + 0x10], ecx
mov edx, dword [edi + 4]
fld dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov eax, dword [edi + 8]
mov dword [esp + 0x18], eax
mov ecx, dword [ebx]
mov dword [esp + 0x44], ecx
mov edx, dword [ebx + 4]
fsub dword [esp + 0x44]
mov dword [esp + 0x48], edx
mov eax, dword [ebx + 8]
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x68]
lea edx, [esp + 0x10]
push ecx
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fsub dword [esp + 0x4c]
fld dword [esp + 0x1c]
fsub dword [esp + 0x50]
push edx
fstp dword [esp + 0x20]
fadd dword [0x4b2f68]
fstp dword [esp + 0x1c]
call fcn.0041a380
fild dword [esp + 0x2c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
fmul dword [0x4b2f64]
fstp dword [esp + 0x38]
mov eax, dword [ebx]
mov dword [esp + 0x4c], eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x50], ecx
mov edx, dword [ebx + 8]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x5c], edx
call fcn.0047b8d0
lea edx, [esp + 0x38]
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00415740
fld dword [esp + 0x44]
fadd dword [esp + 0x2c]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x54]
add esp, 0x1c
cmp eax, esi
fstp dword [esp + 0x98]
fld dword [esp + 0x2c]
fadd dword [esp + 0x14]
push edx
fstp dword [esp + 0xa0]
fld dword [esp + 0x34]
fadd dword [esp + 0x1c]
fstp dword [esp + 0xa4]
jne 0x47c0b6
mov ax, word [edi + 0xe]
push ebp
and eax, 0x1bff
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.0047c250
add esp, 0x10
jmp 0x47c0cf
mov ax, word [edi + 0xe]
push esi
and eax, 0x1bff
push ebp
lea ecx, [esp + 0x74]
push eax
push ecx
call fcn.0047c360
add esp, 0x14
mov dx, word [ebx + 0xe]
and edx, 0x4000
test dx, dx
jne 0x47c109
mov ebx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x20]
add ecx, esi
cmp ecx, ebx
mov dword [esp + 0x20], ecx
jge 0x47c109
mov eax, dword [esp + 0x3c]
shl esi, 4
add edi, esi
inc eax
cmp eax, ebx
mov dword [esp + 0x3c], eax
jl 0x47beaa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret