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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x11c
mov eax, dword [ebp + 8]
fld qword [ebp + 0xc]
fstp qword [ebp - 0x110]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
fld qword [ebp + 0x14]
cmp ecx, edx
mov eax, ecx
fstp qword [ebp - 0x118]
fld qword [ebp + 0x24]
fstp qword [ebp - 0xf8]
fld qword [ebp + 0x2c]
fstp qword [ebp - 0x100]
je 0x476019
nop
add eax, 0xa0
cmp edx, eax
jne 0x476010
mov eax, dword [ebp + 8]
fld qword [ebp - 0x100]
mov dword [ebp - 0xe0], 0
fchs
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x1c]
fstp qword [ebp - 0x108]
test eax, eax
jle 0x4764be
fild dword [ebp - 0xe0]
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xcc], 0
fmul qword [ebp - 0x110]
mov dword [ebp - 0xc8], 0
mov ecx, dword [ecx + 4]
mov dword [ebp - 0xbc], 0
mov eax, dword [eax]
mov edx, ecx
sub edx, eax
sar edx, 3
fadd qword [ebp - 0x118]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [ebp - 0xcc]
sar edx, 1
test edx, edx
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xc4], ecx
fstp qword [ebp - 0xf0]
mov dword [ebp - 0xc0], ecx
jle 0x476491
xor ebx, ebx
xor ecx, ecx
jmp 0x4760dc
fstp st(0)
fstp st(0)
fstp st(0)
add ebx, 0x10
cmp esi, dword [ebp - 0xdc]
je 0x4761c4
mov eax, dword [ebp + 0x20]
mov ecx, esi
mov eax, dword [eax]
lea esi, [ecx + 1]
cmp esi, dword [ebp - 0xdc]
je 0x4764d5
lea edi, [ebx + 0x18]
mov edx, esi
shl edx, 4
mov dword [ebp - 0xe8], edi
fld qword [ebp - 0xf8]
lea edi, [eax + ebx + 8]
add edx, eax
fld qword [eax + ebx]
add eax, dword [ebp - 0xe8]
fmul st(1)
fld qword [ebp - 0x100]
fld qword [edi]
fmul st(1)
faddp st(2)
fld qword [edx]
fmul st(3)
fxch st(1)
fmul qword [eax]
faddp st(1)
fld qword [ebp - 0xf0]
fld st(0)
fsubr st(3)
fxch st(1)
fsubr st(2)
fmulp st(1)
fldz
fxch st(1)
fucompi st(1)
fstp st(0)
ja 0x4760c0
fld qword [ebp - 0xf0]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp + 0x20]
fsub st(2)
fxch st(1)
mov ecx, dword [ecx]
fsubrp st(2)
fdivrp st(1)
fst qword [ebp - 0xa0]
fld st(0)
fsubr dword [0x4bbd4c]
fld qword [ecx + ebx]
lea ecx, [ebp - 0xd0]
fmul st(1)
fld qword [edx]
fmul st(3)
faddp st(1)
fst qword [ebp - 0xb8]
fxch st(1)
fmul qword [edi]
fxch st(2)
fmul qword [eax]
lea eax, [ebp - 0xb8]
mov dword [esp], eax
faddp st(2)
fxch st(1)
fst qword [ebp - 0xb0]
fxch st(1)
fmul qword [ebp - 0x108]
fxch st(1)
fmulp st(2)
faddp st(1)
fstp qword [ebp - 0x98]
call fcn.004ab1e0
sub esp, 4
add ebx, 0x10
cmp esi, dword [ebp - 0xdc]
jne 0x4760d5
mov eax, dword [ebp - 0xbc]
test al, 1
jne 0x476491
mov edi, eax
mov ebx, dword [ebp - 0xc4]
shr edi, 0x1f
add edi, eax
sar edi, 1
test edi, edi
jle 0x476491
xor esi, esi
jmp 0x4762fc
test eax, eax
je 0x4762e4
mov edx, dword [ebp - 0xb8]
mov dword [eax], edx
mov edx, dword [ebp - 0xb4]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xb0]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0xac]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0xa8]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0xa4]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0xa0]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x9c]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x98]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x94]
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0x90]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x8c]
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0x88]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x84]
mov dword [eax + 0x34], edx
mov edx, dword [ebp - 0x80]
mov dword [eax + 0x38], edx
mov edx, dword [ebp - 0x7c]
mov dword [eax + 0x3c], edx
mov edx, dword [ebp - 0x78]
mov dword [eax + 0x40], edx
mov edx, dword [ebp - 0x74]
fld qword [ebp - 0x60]
mov dword [eax + 0x44], edx
mov edx, dword [ebp - 0x70]
mov dword [eax + 0x48], edx
mov edx, dword [ebp - 0x6c]
mov dword [eax + 0x4c], edx
mov edx, dword [ebp - 0x68]
fstp qword [eax + 0x58]
fld qword [ebp - 0x58]
mov dword [eax + 0x50], edx
fstp qword [eax + 0x60]
fld qword [ebp - 0x50]
fstp qword [eax + 0x68]
fstp qword [eax + 0x70]
fld qword [ebp - 0x40]
mov dword [eax + 0x80], vtable.et.0
fstp qword [eax + 0x78]
fld qword [ebp - 0x30]
fstp qword [eax + 0x88]
fld qword [ebp - 0x28]
fstp qword [eax + 0x90]
fld qword [ebp - 0x20]
fstp qword [eax + 0x98]
jmp 0x4762e6
fstp st(0)
mov ecx, dword [ebp + 8]
add esi, 1
add eax, 0xa0
cmp esi, edi
mov dword [ecx + 4], eax
je 0x476491
fldz
mov dword [ebp - 0x38], vtable.et.0
fst qword [ebp - 0x30]
fst qword [ebp - 0x28]
fstp qword [ebp - 0x20]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 0x34]
mov dword [esp], ebx
mov dword [ebp - 0x94], eax
call fcn.00488100
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x90], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x8c], edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x88], edx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x84], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x80], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x7c], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x78], edx
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x74], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x70], edx
mov edx, dword [eax + 0x34]
mov dword [esp], eax
mov dword [ebp - 0x6c], edx
call fcn.00488100
fld qword [ebp - 0xb8]
mov ebx, eax
mov eax, dword [ebp - 0xe0]
fsub qword [ebp - 0x90]
mov dword [ebp - 0x68], eax
fld qword [ebp - 0xb0]
fld qword [ebp - 0x88]
fsubp st(1)
fxch st(1)
fmul st(0)
fxch st(1)
fmul st(0)
faddp st(1)
fld st(0)
fsqrt
fucomi st(0)
jp 0x4764c6
fstp st(1)
fstp qword [ebp - 0x60]
call sub.msvcrt.dll_rand
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fld dword [0x4bbd68]
fmul st(1), st(0)
fstp qword [ebp - 0xe8]
fstp qword [ebp - 0x58]
call sub.msvcrt.dll_rand
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fld qword [ebp - 0xe8]
fmulp st(1)
fstp qword [ebp - 0x50]
call sub.msvcrt.dll_rand
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
fld qword [ebp - 0xe8]
mov eax, dword [eax + 4]
fmulp st(1)
cmp eax, dword [ecx + 8]
fst qword [ebp - 0x48]
jne 0x4761f0
fstp st(0)
lea ecx, [ebp - 0xb8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 8]
call fcn.004a5bd0
add esi, 1
sub esp, 8
cmp esi, edi
jne 0x4762fc
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xd0]
mov dword [esp], eax
call fcn.004ab320
add dword [ebp - 0xe0], 1
sub esp, 4
mov eax, dword [ebp - 0xe0]
cmp eax, dword [ebp + 0x1c]
jne 0x476042
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
fstp st(0)
fstp qword [esp]
call fcn.004881d0
jmp 0x4763fd
mov dword [ebp - 0xe8], 8
xor edx, edx
jmp 0x4760f9