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

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
mov ebp, dword [esp + 0x110]
push edi
mov edi, dword [esp + 0x118]
mov dword [esp + 0x18], 0
mov eax, dword [edi + 0x38]
test eax, eax
je 0x475a51
test byte [edi + 0x3c], 1
je 0x475a51
push 1
push eax
push ebp
call fcn.00475a10
add esp, 0xc
mov dword [esp + 0x18], 1
mov edx, dword [edi + 0x20]
xor eax, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
cmp dword [edx], 0
jle 0x475cc4
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x475cb5
mov esi, dword [ecx + eax*4]
test esi, esi
jl 0x475cb5
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x475bf3
mov ecx, dword [0x7ea400]
cmp byte [ecx + esi], 0
je 0x475bf3
lea edx, [esp + 0xa4]
push edx
push eax
push edi
call fcn.004764b0
add esp, 0xc
test eax, eax
je 0x475b06
mov ecx, dword [0x7ea408]
lea eax, [esi + esi*2]
shl eax, 2
fld dword [eax + ecx]
fsubr dword [esp + 0xa4]
fmul dword [edi + 0x44]
fadd dword [eax + ecx]
fstp dword [eax + ecx]
mov ecx, dword [0x7ea408]
fld dword [eax + ecx + 4]
fsubr dword [esp + 0xa8]
fmul dword [edi + 0x44]
fadd dword [eax + ecx + 4]
fstp dword [eax + ecx + 4]
mov ecx, dword [0x7ea408]
fld dword [eax + ecx + 8]
fsubr dword [esp + 0xac]
fmul dword [edi + 0x44]
fadd dword [eax + ecx + 8]
fstp dword [eax + ecx + 8]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc0]
push eax
push ecx
push edi
call fcn.00476300
add esp, 0xc
test eax, eax
je 0x475b79
mov eax, dword [0x7ea40c]
mov ebx, esi
shl ebx, 4
lea edx, [esp + 0xc0]
push edx
mov edx, dword [edi + 0x44]
lea ecx, [ebx + eax]
lea eax, [esp + 0xb4]
push ecx
push edx
push eax
call fcn.00478770
mov ecx, dword [0x7ea40c]
mov edx, dword [esp + 0xc0]
add esp, 0x10
add ebx, ecx
mov dword [ebx], edx
mov eax, dword [esp + 0xb4]
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0xb8]
mov dword [ebx + 8], ecx
mov edx, dword [esp + 0xbc]
mov dword [ebx + 0xc], edx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x98]
push eax
push ecx
push edi
call fcn.00476670
add esp, 0xc
test eax, eax
je 0x475ca4
mov ecx, dword [0x7ea410]
lea eax, [esi + esi*2]
shl eax, 2
fld dword [eax + ecx]
fsubr dword [esp + 0x98]
fmul dword [edi + 0x44]
fadd dword [eax + ecx]
fstp dword [eax + ecx]
mov ecx, dword [0x7ea410]
fld dword [eax + ecx + 4]
fsubr dword [esp + 0x9c]
fmul dword [edi + 0x44]
fadd dword [eax + ecx + 4]
fstp dword [eax + ecx + 4]
mov ecx, dword [0x7ea410]
fld dword [eax + ecx + 8]
fsubr dword [esp + 0xa0]
fmul dword [edi + 0x44]
fadd dword [eax + ecx + 8]
fstp dword [eax + ecx + 8]
jmp 0x475ca4
mov edx, dword [0x7ea408]
lea ebx, [esi + esi*2]
shl ebx, 2
lea ecx, [ebx + edx]
push ecx
push eax
push edi
call fcn.004764b0
add esp, 0xc
test eax, eax
jne 0x475c33
mov edx, dword [0x7ea408]
mov eax, 0x3f800000
mov dword [ebx + edx], eax
mov ecx, dword [0x7ea408]
mov dword [ebx + ecx + 4], eax
mov edx, dword [0x7ea408]
mov dword [ebx + edx + 8], eax
mov ecx, dword [0x7ea40c]
mov edx, dword [esp + 0x14]
mov eax, esi
shl eax, 4
mov dword [esp + 0x20], eax
add eax, ecx
push eax
push edx
push edi
call fcn.00476300
add esp, 0xc
test eax, eax
jne 0x475c6b
mov eax, dword [0x7ea40c]
mov ecx, dword [esp + 0x20]
add ecx, eax
push ecx
call fcn.00477fb0
add esp, 4
mov edx, dword [0x7ea410]
mov ecx, dword [esp + 0x14]
lea eax, [ebx + edx]
push eax
push ecx
push edi
call fcn.00476670
add esp, 0xc
test eax, eax
jne 0x475ca4
mov edx, dword [0x7ea410]
mov dword [ebx + edx], eax
mov ecx, dword [0x7ea410]
mov dword [ebx + ecx + 4], eax
mov edx, dword [0x7ea410]
mov dword [ebx + edx + 8], eax
mov eax, dword [0x7ea400]
mov edx, dword [esp + 0x1c]
mov byte [eax + esi], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [edx]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x475a67
mov ecx, dword [esp + 0x11c]
xor eax, eax
cmp ecx, eax
jne 0x47628b
mov ecx, dword [edx]
mov dword [esp + 0x14], eax
cmp ecx, eax
jle 0x47628b
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 0x30]
mov ebx, dword [ecx + eax*4]
test ebx, ebx
jl 0x476271
test byte [edi + 0x14], 8
je 0x475d07
or esi, 0xffffffff
mov dword [esp + 0x10], esi
jmp 0x475df9
mov edx, dword [edx + 0x3c]
mov al, byte [eax + edx]
cmp al, 0xff
je 0x475d2a
and eax, 0xff
jl 0x475d2a
mov eax, dword [ecx + eax*4]
test eax, eax
mov dword [esp + 0x10], eax
jge 0x475d39
mov edi, ebx
shl edi, 6
jmp 0x475d4a
mov edi, ebx
mov dword [esp + 0x10], 0xffffffff
shl edi, 6
jmp 0x475d4a
mov edx, dword [0x7ea404]
mov edi, ebx
shl edi, 6
cmp byte [edx + eax], 0
jne 0x475d99
mov edx, dword [0x7ea414]
lea esi, [ebp + 0x38]
add edi, edx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
fld dword [ebp + 0x14]
mov ecx, dword [ebp + 0xac]
lea eax, [ebx + ebx*2]
shl eax, 2
add ecx, eax
fmul dword [ecx]
fstp dword [ecx]
mov edx, dword [ebp + 0xac]
fld dword [ebp + 0x18]
fmul dword [eax + edx + 4]
lea ecx, [eax + edx + 4]
fstp dword [ecx]
mov ecx, dword [ebp + 0xac]
fld dword [ebp + 0x1c]
fmul dword [eax + ecx + 8]
lea eax, [eax + ecx + 8]
fstp dword [eax]
jmp 0x475dee
mov ecx, dword [0x7ea414]
mov esi, eax
shl esi, 6
add esi, ecx
add edi, ecx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xac]
lea ecx, [eax + eax*2]
shl ecx, 2
lea eax, [ebx + ebx*2]
fld dword [edx + ecx]
shl eax, 2
fmul dword [edx + eax]
fstp dword [edx + eax]
mov edx, dword [ebp + 0xac]
fld dword [edx + ecx + 4]
fmul dword [edx + eax + 4]
fstp dword [edx + eax + 4]
mov edx, dword [ebp + 0xac]
fld dword [edx + ecx + 8]
fmul dword [edx + eax + 8]
fstp dword [edx + eax + 8]
mov edi, dword [esp + 0x118]
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x48]
push edx
call fcn.00477d80
mov ecx, dword [esp + 0x20]
xor edx, edx
add esp, 4
mov dword [esp + 0x30], edx
mov eax, dword [ecx + 0x40]
mov dword [esp + 0x20], edx
cmp eax, edx
mov dword [esp + 0x44], edx
je 0x475fee
mov edx, dword [esp + 0x14]
mov eax, dword [eax + edx*4]
test ah, ah
mov dword [esp + 0x40], eax
js 0x475fee
test esi, esi
jl 0x475faf
test eax, 0x10000
jne 0x475faf
test ah, 4
jne 0x475ed6
lea eax, [esp + 0x88]
mov dword [esp + 0x44], 1
push eax
call fcn.00477fb0
mov cl, byte [esp + 0x44]
mov eax, dword [0x7ea40c]
add esp, 4
test cl, 8
jne 0x475e87
mov edx, esi
shl edx, 4
fld dword [edx + eax]
fstp dword [esp + 0x88]
test cl, 0x10
jne 0x475e9c
mov edx, esi
shl edx, 4
fld dword [edx + eax + 4]
fstp dword [esp + 0x8c]
test cl, 0x20
jne 0x475eb1
mov ecx, esi
shl ecx, 4
fld dword [ecx + eax + 8]
fstp dword [esp + 0x90]
lea edx, [esp + 0x88]
push edx
call fcn.004784f0
lea eax, [esp + 0x8c]
push eax
call fcn.004785d0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
add esp, 8
test ah, 8
jne 0x475f47
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], 1
test al, 0x40
mov dword [esp + 0x24], 0x3f800000
mov dword [esp + 0x28], 0x3f800000
mov dword [esp + 0x2c], 0x3f800000
jne 0x475f16
mov edi, dword [ebp + 0xac]
fld dword [0x47f354]
fdiv dword [edi + edx]
fstp dword [esp + 0x24]
test al, al
js 0x475f2e
mov edi, dword [ebp + 0xac]
fld dword [0x47f354]
fdiv dword [edi + edx + 4]
fstp dword [esp + 0x28]
test ah, 1
jne 0x475f47
mov edi, dword [ebp + 0xac]
fld dword [0x47f354]
fdiv dword [edi + edx + 8]
fstp dword [esp + 0x2c]
test ah, 2
jne 0x475fee
mov edi, dword [0x7ea414]
mov dword [esp + 0x20], 1
test al, 1
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
jne 0x475f89
mov edx, esi
shl edx, 6
fld dword [edx + edi + 0x30]
fchs
fstp dword [esp + 0x34]
test al, 2
jne 0x475f9c
mov edx, esi
shl edx, 6
fld dword [edx + edi + 0x34]
fchs
fstp dword [esp + 0x38]
test al, 4
jne 0x475fee
shl esi, 6
fld dword [esi + edi + 0x38]
fchs
fstp dword [esp + 0x3c]
jmp 0x475fee
test byte [edi + 0x14], 8
jne 0x475fee
mov eax, dword [0x7ea414]
mov edi, ebx
shl edi, 6
lea esi, [ebp + 0x38]
add edi, eax
mov ecx, 0x10
lea eax, [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xac]
lea ecx, [ebx + ebx*2]
lea ecx, [edx + ecx*4]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x7ea408]
lea esi, [ebx + ebx*2]
shl esi, 2
fld dword [esi + eax]
fstp dword [esp + 0x48]
fld dword [esi + eax + 4]
fstp dword [esp + 0x5c]
fld dword [esi + eax + 8]
mov eax, dword [esp + 0x30]
fstp dword [esp + 0x70]
test eax, eax
je 0x47603c
fld dword [esp + 0x48]
fmul dword [esp + 0x24]
fstp dword [esp + 0x48]
fld dword [esp + 0x5c]
fmul dword [esp + 0x28]
fstp dword [esp + 0x5c]
fld dword [esp + 0x70]
fmul dword [esp + 0x2c]
fstp dword [esp + 0x70]
mov edx, dword [ebp + 0xac]
fld dword [esp + 0x48]
fmul dword [esi + edx]
lea eax, [esi + edx]
fstp dword [eax]
mov eax, dword [ebp + 0xac]
fld dword [esp + 0x5c]
fmul dword [esi + eax + 4]
lea eax, [esi + eax + 4]
fstp dword [eax]
mov edx, dword [ebp + 0xac]
fld dword [esp + 0x70]
fmul dword [esi + edx + 8]
lea eax, [esi + edx + 8]
fstp dword [eax]
mov edx, dword [ecx + 0x38]
mov eax, dword [esp + 0x18]
fld dword [esp + 0x48]
fmul dword [eax + edx]
fchs
fstp dword [esp + 0x78]
mov edx, dword [ecx + 0x38]
fld dword [esp + 0x5c]
fmul dword [eax + edx + 4]
fchs
fstp dword [esp + 0x7c]
mov ecx, dword [ecx + 0x38]
fld dword [esp + 0x70]
fmul dword [eax + ecx + 8]
mov eax, dword [esp + 0x44]
test eax, eax
fchs
fstp dword [esp + 0x80]
je 0x4760d5
lea edx, [esp + 0x88]
mov eax, ebx
push edx
mov edx, dword [0x7ea40c]
shl eax, 4
add eax, edx
push eax
call fcn.00478350
add esp, 8
mov edx, dword [0x7ea40c]
mov edi, ebx
shl edi, 4
lea ecx, [esp + 0xd0]
lea eax, [edi + edx]
push ecx
push eax
call fcn.00478120
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jl 0x476113
mov ecx, dword [0x7ea40c]
shl eax, 4
add eax, ecx
add edi, ecx
push eax
push edi
call fcn.00478350
add esp, 8
lea ecx, [esp + 0x48]
lea edx, [esp + 0xd0]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
call fcn.00477f00
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
fld dword [esp + 0x84]
mov edx, dword [ecx + 0x38]
add esp, 0xc
fadd dword [eax + edx]
fstp dword [esp + 0x78]
mov edx, dword [ecx + 0x38]
fld dword [esp + 0x7c]
fadd dword [eax + edx + 4]
fstp dword [esp + 0x7c]
mov ecx, dword [ecx + 0x38]
fld dword [esp + 0x80]
fadd dword [eax + ecx + 8]
mov eax, dword [0x7ea410]
fstp dword [esp + 0x80]
fld dword [esp + 0x78]
fadd dword [esi + eax]
fstp dword [esp + 0x78]
fld dword [esp + 0x7c]
fadd dword [esi + eax + 4]
fstp dword [esp + 0x7c]
fld dword [esp + 0x80]
fadd dword [esi + eax + 8]
mov eax, dword [esp + 0x20]
test eax, eax
fstp dword [esp + 0x80]
je 0x4761ca
fld dword [esp + 0x78]
fadd dword [esp + 0x34]
fstp dword [esp + 0x78]
fld dword [esp + 0x7c]
fadd dword [esp + 0x38]
fstp dword [esp + 0x7c]
fld dword [esp + 0x80]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x80]
mov edx, dword [esp + 0x118]
test byte [edx + 0x14], 8
jne 0x4761f8
mov eax, dword [0x7ea414]
mov esi, ebx
shl esi, 6
add eax, esi
lea ecx, [esp + 0x48]
push eax
push eax
push ecx
mov dword [esp + 0x1c], esi
call fcn.00477f00
add esp, 0xc
jmp 0x476217
mov edx, dword [0x7ea414]
mov eax, ebx
shl eax, 6
mov ecx, 0x10
lea esi, [esp + 0x48]
lea edi, [eax + edx]
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
mov esi, eax
mov eax, dword [0x7ea404]
cmp byte [eax + ebx], 0
je 0x47623e
mov ecx, dword [0x7ea414]
mov edx, dword [ebp + 0xa8]
add edx, esi
lea eax, [esi + ecx]
push eax
push eax
push edx
call fcn.00477f00
add esp, 0xc
mov eax, dword [0x7ea414]
mov edi, dword [ebp + 0xa8]
add esi, eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
add edi, eax
mov eax, dword [esp + 0x14]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x7ea404]
mov edi, dword [esp + 0x118]
mov byte [ecx + ebx], 1
mov esi, dword [esp + 0x18]
mov ecx, dword [edx]
inc eax
add esi, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
jl 0x475ce7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret