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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x80]
fld qword [esp + 0x78]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x84]
fstp qword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 4]
sub eax, dword [edx]
mov dword [esp + 0x44], eax
cmp eax, 0xb10
jbe 0x1004aec
cmp dword [esp + 0x44], 0xb1000
ja 0x1004ac2
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x18], edx
sar ebx, 4
imul edi, ebx, 0xe02e4851
imul eax, ebx, 0x7f46dec0
mov dword [esp + 0x24], edi
cmp eax, 0xfffffff
ja 0x1004b28
imul ebx, ebx, 0xfa36f600
mov dword [esp], ebx
call fcn.010270bd
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 0x28], eax
call fcn.0100116d
test edi, edi
mov edx, dword [esp + 0x18]
je 0x1004827
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
xor esi, esi
mov ebp, edx
mov ebx, eax
lea edi, [eax + edi*8]
jmp 0x10047ee
fld dword [eax*4 + 0x69a13e60]
add ebx, 8
add esi, 0xb10
fstp qword [ebx - 8]
cmp edi, ebx
je 0x1004825
mov eax, dword [ebp]
mov eax, dword [eax + esi + 0xb00]
cmp eax, 0xff
jbe 0x10047d7
movd xmm1, eax
add ebx, 8
add esi, 0xb10
movq qword [esp + 0x48], xmm1
fild qword [esp + 0x48]
fstp qword [esp]
call fcn.00fe73ad
fstp qword [ebx - 8]
cmp edi, ebx
jne 0x10047ee
mov edx, ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], 0x2c0
imul edi, eax, 0x2bf
shl eax, 3
mov dword [esp + 0x3c], eax
add ecx, eax
lea esi, [esi]
mov ebx, dword [esp + 0x24]
sub dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
test ebx, ebx
je 0x10048ef
lea ebp, [eax*4]
mov ebx, dword [esp + 0x28]
xor esi, esi
mov eax, ebp
mov ebp, ecx
mov ecx, eax
jmp 0x1004895
fld dword [0x69a14264]
fsubp st(1)
add esi, 0xb10
fstp qword [ebx + edi*8]
add ebx, 8
cmp ebp, ebx
je 0x10048ed
mov eax, dword [edx]
fld qword [ebx]
add eax, ecx
mov eax, dword [eax + esi]
test eax, eax
je 0x100487d
cmp eax, 0xff
ja 0x10048b5
fld dword [eax*4 + 0x69a13e60]
jmp 0x1004883
movd xmm0, eax
fstp qword [esp + 0x10]
movq qword [esp + 0x48], xmm0
fild qword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
fstp qword [esp]
call fcn.00fe73ad
mov edx, dword [esp + 0x1c]
fld qword [esp + 0x10]
fxch st(1)
mov ecx, dword [esp + 0x20]
jmp 0x1004883
mov ecx, ebp
mov esi, dword [esp + 0x18]
sub edi, dword [esp + 0x24]
test esi, esi
jne 0x100484d
mov edx, dword [esp + 0x44]
test edx, edx
js 0x1004b28
mov edi, dword [esp + 0x3c]
mov dword [esp], edi
call fcn.010270bd
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call fcn.0100116d
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
imul eax, esi
mov dword [esp], eax
mov edi, eax
call fcn.010270bd
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov ebp, eax
mov dword [esp], eax
call fcn.0100116d
lea ecx, [esi - 1]
mov eax, esi
mov edx, dword [esp + 0x24]
mov esi, ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
sub edi, edx
add ecx, esi
mov dword [esp + 0x10], ecx
test eax, eax
je 0x1004b14
mov dword [esp + 0x44], edi
mov esi, ebp
xor ecx, ecx
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
movzx edi, word [eax + ecx*2]
test edx, edx
je 0x1004a1a
fld qword [0x69a14268]
imul edi, dword [esp + 0x3c]
xor eax, eax
add edi, dword [esp + 0x28]
nop
fld qword [ebx + eax*8]
fadd qword [edi + eax*8]
fst qword [ebx + eax*8]
fxch st(1)
fcomi st(1)
jbe 0x10049cd
fstp st(0)
mov byte [ebp + ecx], al
jmp 0x10049cf
fstp st(1)
add eax, 1
cmp eax, edx
jne 0x10049ad
fld qword [esp + 0x30]
cmp ecx, 0x7cf
jbe 0x1004a9d
xor eax, eax
jmp 0x10049f7
fstp qword [ebx + eax*8]
add eax, 1
cmp eax, edx
jae 0x1004a16
fld qword [ebx + eax*8]
fsub st(2)
fcomi st(1)
jb 0x10049ed
fstp st(0)
mov byte [esi + eax], 1
fst qword [ebx + eax*8]
add eax, 1
cmp eax, edx
jb 0x10049f7
fstp st(0)
fstp st(0)
jmp 0x1004a1a
fstp st(0)
fstp st(0)
add ecx, 1
add esi, edx
cmp dword [esp + 0x38], ecx
jne 0x100498b
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x44]
movzx ecx, byte [eax]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1004a79
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x24]
lea eax, [eax + edx - 2]
jmp 0x1004a58
mov eax, edx
sub edi, esi
movzx edx, cl
lea ebx, [ebp + edi]
cmp byte [ebx + edx], 0
je 0x1004a6a
movzx ecx, byte [eax]
mov byte [eax], cl
lea edx, [eax - 1]
cmp eax, dword [esp + 0x2c]
jne 0x1004a56
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0102708d
mov dword [esp], ebx
call fcn.0102708d
mov dword [esp + 0x70], ebp
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0102708d
fstp st(0)
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fmul qword [0x69a14270]
fdiv dword [0x69a14278]
fadd qword [0x69a14280]
fmul qword [esp + 0x30]
jmp 0x10049e6
mov dword [esp + 0x18], edx
mov dword [esp + 8], 0xac
mov dword [esp + 4], 0x69a13dd4
mov dword [esp], 0x69a13de6
call dword [0x69aba3b0]
mov edx, dword [esp + 0x18]
jmp 0x1004770
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1004b20
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0100116d
mov eax, dword [esp + 0x10]
movzx ecx, byte [eax]
jmp 0x1004a40
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0102858d
sub esp, 0x1c
mov dword [esp + 4], 0x10
mov dword [esp], ecx
call fcn.010270ad
add esp, 0x1c
ret