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

Disassembly:
sub esp, 0xf4
push esi
push edi
mov edi, dword [esp + 0x100]
test edi, edi
mov esi, edi
je 0x474bf8
push 0xf
push 4
call fcn.005061b0
push 9
push 1
call fcn.005061b0
push 0
push 1
call fcn.00506440
mov al, byte [0x550024]
add esp, 0x18
mov byte [esp + 0x17], al
mov byte [0x550024], 1
mov byte [0x652f3c], 1
xor edx, edx
mov esi, dword [esi + 0x20]
inc edx
test esi, esi
jne 0x474810
test edx, edx
mov dword [esp + 0x38], edx
jle 0x474bc2
push ebx
push ebp
cmp edx, 0xb
jge 0x474839
mov al, byte [edx + 0x66073b]
test al, al
jne 0x474bb3
cmp edx, 1
mov eax, edi
jle 0x474849
lea ecx, [edx - 1]
mov eax, dword [eax + 0x20]
dec ecx
jne 0x474843
test byte [eax + 5], 0x80
jne 0x474bb3
xor ecx, ecx
mov cl, byte [eax + 0x1f]
mov esi, ecx
shl esi, 4
add esi, ecx
mov cl, byte [esi*4 + 0x6b244a]
test cl, cl
je 0x474bb3
xor ecx, ecx
mov dword [0x660f90], 0xffff0000
mov cl, byte [eax + 0x1f]
mov edx, ecx
shl edx, 4
add edx, ecx
mov ecx, dword [edx*4 + 0x6b2468]
xor edx, edx
mov dword [0x64f5d0], ecx
mov dl, byte [eax + 0x1f]
mov esi, edx
xor ecx, ecx
mov cx, word [eax + 0x1a]
shl esi, 4
add esi, edx
mov edx, dword [edx*4 + 0x5f6764]
mov esi, dword [esi*4 + 0x6b2454]
mov ebx, dword [esi + ecx*4]
lea ecx, [ecx + ecx*8]
lea ebp, [edx + ecx*4]
mov cx, word [eax + 0x14]
test cx, cx
jne 0x474917
cmp word [eax + 0x16], cx
jne 0x474917
cmp word [eax + 0x18], cx
jne 0x474917
mov eax, 4
mov edx, 0x64e518
lea esi, [esp + 0x44]
sub edx, eax
lea ecx, [esp + 0x50]
sub esi, eax
mov edi, dword [edx + eax]
add ecx, 0x10
mov dword [esi + eax], edi
mov edi, dword [eax + 0x64e518]
mov dword [esp + eax + 0x44], edi
mov edi, dword [eax + 0x64e51c]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + 0x64e520]
mov dword [ecx - 0x10], edi
add eax, 0x10
cmp eax, 0x44
jl 0x4748e5
jmp 0x474ab6
fld dword [0x53bd70]
fdiv dword [0x53bd74]
movsx edx, word [eax + 0x18]
mov dword [esp + 0x10], edx
movsx eax, word [eax + 0x16]
movsx ecx, cx
fstp dword [esp + 0x18]
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [esp + 0x18]
mov dword [esp + 0x10], eax
fstp dword [esp + 0x28]
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [esp + 0x18]
mov dword [esp + 0x10], ecx
fstp dword [esp + 0x24]
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp qword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push esi
push edi
call fcn.00529994
fstp dword [esp + 0x28]
push esi
push edi
call fcn.005293e4
fstp dword [esp + 0x28]
fld dword [esp + 0x34]
fstp qword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
push esi
push edi
call fcn.00529994
fstp dword [esp + 0x44]
push esi
push edi
call fcn.005293e4
fstp dword [esp + 0x54]
fld dword [esp + 0x48]
fstp qword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
push esi
push edi
call fcn.00529994
fstp dword [esp + 0x60]
push esi
push edi
call fcn.005293e4
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fmul dword [esp + 0x64]
add esp, 0x30
push 0x3f800000
push 0
fstp dword [esp + 0x18]
fld dword [esp + 0x40]
fmul dword [esp + 0x34]
push 0
push 0
push 0
push ecx
fstp dword [esp + 0x3c]
fld dword [esp + 0x48]
fmul dword [esp + 0x44]
fstp dword [esp + 0x40]
fld dword [esp + 0x50]
fmul dword [esp + 0x4c]
fstp dword [esp + 0x54]
fld dword [esp + 0x4c]
fmul dword [esp + 0x30]
fstp dword [esp]
fld dword [esp + 0x38]
push ecx
fchs
fstp dword [esp]
fld dword [esp + 0x48]
fmul dword [esp + 0x34]
push ecx
fstp dword [esp]
fld dword [esp + 0x30]
fmul dword [esp + 0x40]
push 0
push ecx
fadd dword [esp + 0x4c]
fstp dword [esp]
fld dword [esp + 0x58]
fmul dword [esp + 0x40]
push ecx
fstp dword [esp]
fld dword [esp + 0x54]
fmul dword [esp + 0x4c]
push ecx
fsub dword [esp + 0x6c]
fstp dword [esp]
fld dword [esp + 0x6c]
fmul dword [esp + 0x50]
push 0
push ecx
fsub dword [esp + 0x60]
fstp dword [esp]
fld dword [esp + 0x70]
fmul dword [esp + 0x50]
push ecx
fstp dword [esp]
fld dword [esp + 0x60]
fmul dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x84]
fadd dword [esp + 0x50]
fstp dword [esp]
call fcn.00476710
mov eax, dword [0x550090]
push 0x3f800000
push 0
push 0
mov ecx, eax
push 0
push 0
push ecx
push 0
push 0
mov edx, eax
push 0
push 0
push edx
push 0
push 0
push 0
push 0
push eax
lea ecx, [esp + 0xc4]
call fcn.00476710
lea edx, [esp + 0x84]
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0xc8]
push eax
push ecx
call fcn.00476a00
lea esi, [esp + 0x50]
add esp, 0xc
lea edx, [eax + 0xc]
sub eax, esi
lea ecx, [esp + 0x48]
mov esi, 4
mov edi, dword [edx - 0xc]
add edx, 0x10
mov dword [ecx - 4], edi
mov edi, dword [ecx + eax]
mov dword [ecx], edi
mov edi, dword [edx - 0x14]
mov dword [ecx + 4], edi
mov edi, dword [edx - 0x10]
mov dword [ecx + 8], edi
add ecx, 0x10
dec esi
jne 0x474b1a
mov edx, dword [0x56e768]
mov eax, dword [0x56e76c]
mov ecx, dword [0x56e770]
mov esi, dword [0x54d384]
mov dword [esp + 0x74], edx
mov edx, dword [0x56e774]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [0x54d384], 0
mov eax, dword [ebp + 0xc]
test ah, 1
jne 0x474ba2
test ah, 0x40
jne 0x474b91
lea eax, [esp + 0x44]
push 0
push eax
push ebp
push ebx
call fcn.00476d00
jmp 0x474b9f
push ebp
lea ecx, [esp + 0x48]
push 0
push ecx
push ebx
call fcn.00478180
add esp, 0x10
mov edi, dword [esp + 0x108]
mov edx, dword [esp + 0x40]
mov dword [0x54d384], esi
dec edx
test edx, edx
mov dword [esp + 0x40], edx
jg 0x474826
pop ebp
pop ebx
mov dl, byte [esp + 0x17]
push 8
push 1
mov byte [0x652f3c], 0
mov byte [0x550024], dl
call fcn.005061b0
push 0xe
push 4
call fcn.005061b0
push 0
push 1
call fcn.00506440
add esp, 0x18
mov byte [0x660fe2], 0
pop edi
pop esi
add esp, 0xf4
ret