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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push ebx
push esi
push edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ecx
cmp eax, ecx
je 0x6704c4e8
mov byte [eax], 1
mov edi, dword [ebp + 8]
fldz
movzx eax, byte [edi]
fstp qword [esp + 0x70]
mov ebx, dword [sym.imp.MSVCR100.dll_isspace]
push eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x70], ecx
mov esi, edi
mov dword [esp + 0x24], edi
call ebx
add esp, 4
test eax, eax
je 0x6704c529
movzx ecx, byte [esi + 1]
inc esi
push ecx
call ebx
add esp, 4
test eax, eax
jne 0x6704c516
mov dword [esp + 0x20], esi
mov al, byte [esi]
cmp al, 0x2d
jne 0x6704c539
mov dword [esp + 0x6c], 1
jmp 0x6704c53d
cmp al, 0x2b
jne 0x6704c542
inc esi
mov dword [esp + 0x20], esi
mov al, byte [esi]
test al, al
jne 0x6704c54f
mov esi, edi
jmp 0x6704d3bc
cmp al, 0x30
jne 0x6704c574
mov dword [esp + 0x54], 1
jmp 0x6704c560
inc esi
cmp byte [esi], 0x30
je 0x6704c560
mov al, byte [esi]
mov dword [esp + 0x20], esi
test al, al
je 0x6704d3bc
movsx eax, al
xor ecx, ecx
xor edx, edx
xor edi, edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x4c], ecx
cmp eax, 0x30
jl 0x6704c5c8
cmp eax, 0x39
jg 0x6704c5bc
cmp edi, 9
jge 0x6704c5a5
lea edx, [edx + edx*4]
lea edx, [eax + edx*2 - 0x30]
jmp 0x6704c5b1
cmp edi, 0x10
jge 0x6704c5b1
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*2 - 0x30]
movsx eax, byte [esi + 1]
inc esi
inc edi
cmp eax, 0x30
jge 0x6704c592
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x58], edi
cmp eax, 0x2e
jne 0x6704c696
movsx eax, byte [esi + 1]
inc esi
mov dword [esp + 0x20], esi
test edi, edi
jne 0x6704c617
cmp eax, 0x30
jne 0x6704c5ff
jmp 0x6704c5f0
movsx eax, byte [esi + 1]
inc esi
inc ebx
cmp eax, 0x30
je 0x6704c5f0
mov dword [esp + 0x20], esi
lea edx, [eax - 0x31]
cmp edx, 8
ja 0x6704c696
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x64], esi
xor ebx, ebx
jmp 0x6704c61f
lea edx, [eax - 0x30]
cmp edx, 9
ja 0x6704c696
inc ebx
sub eax, 0x30
je 0x6704c68b
add dword [esp + 0x4c], ebx
cmp ebx, 1
jle 0x6704c658
dec ebx
nop
mov edx, edi
inc edi
cmp edx, 9
jge 0x6704c647
mov edx, dword [esp + 0x24]
lea edx, [edx + edx*4]
add edx, edx
mov dword [esp + 0x24], edx
jmp 0x6704c651
cmp edi, 0x10
jg 0x6704c651
lea ecx, [ecx + ecx*4]
add ecx, ecx
dec ebx
jne 0x6704c630
mov dword [esp + 0x3c], ecx
mov edx, edi
inc edi
cmp edx, 9
jge 0x6704c67a
mov edx, dword [esp + 0x24]
lea edx, [edx + edx*4]
lea eax, [eax + edx*2]
xor ebx, ebx
inc esi
mov dword [esp + 0x24], eax
movsx eax, byte [esi]
mov dword [esp + 0x20], esi
jmp 0x6704c617
cmp edi, 0x10
jg 0x6704c689
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*2]
mov dword [esp + 0x3c], ecx
xor ebx, ebx
movsx eax, byte [esi + 1]
inc esi
mov dword [esp + 0x20], esi
jmp 0x6704c617
xor ecx, ecx
cmp eax, 0x65
je 0x6704c6a6
cmp eax, 0x45
jne 0x6704c765
test edi, edi
jne 0x6704c6bc
test ebx, ebx
jne 0x6704c6bc
cmp dword [esp + 0x54], ecx
jne 0x6704c6bc
mov esi, dword [ebp + 8]
jmp 0x6704d3bc
movsx eax, byte [esi + 1]
mov dword [ebp + 8], esi
inc esi
mov edx, eax
sub edx, 0x2b
mov dword [esp + 0x40], ecx
mov dword [esp + 0x20], esi
je 0x6704c6e0
sub edx, 2
jne 0x6704c6e9
mov dword [esp + 0x40], 1
movsx eax, byte [esi + 1]
inc esi
mov dword [esp + 0x20], esi
lea edx, [eax - 0x30]
cmp edx, 9
ja 0x6704c75e
cmp eax, 0x30
jne 0x6704c704
movsx eax, byte [esi + 1]
inc esi
cmp eax, 0x30
je 0x6704c6f6
mov dword [esp + 0x20], esi
lea ecx, [eax - 0x31]
cmp ecx, 8
ja 0x6704c75a
mov edx, esi
inc esi
lea ecx, [eax - 0x30]
movsx eax, byte [esi]
mov dword [esp + 0x20], esi
cmp eax, 0x30
jl 0x6704c739
mov edi, edi
cmp eax, 0x39
jg 0x6704c735
lea ecx, [ecx + ecx*4]
inc esi
lea ecx, [eax + ecx*2 - 0x30]
movsx eax, byte [esi]
cmp eax, 0x30
jge 0x6704c720
mov dword [esp + 0x20], esi
mov eax, esi
sub eax, edx
cmp eax, 8
jg 0x6704c74a
cmp ecx, 0x4e1f
jle 0x6704c74f
mov ecx, 0x4e1f
cmp dword [esp + 0x40], 0
je 0x6704c765
neg ecx
jmp 0x6704c765
xor ecx, ecx
jmp 0x6704c765
mov esi, dword [ebp + 8]
mov dword [esp + 0x20], esi
test edi, edi
jne 0x6704c783
test ebx, ebx
jne 0x6704d3bc
cmp dword [esp + 0x54], ebx
jne 0x6704d3bc
mov esi, dword [ebp + 8]
jmp 0x6704d3bc
sub ecx, dword [esp + 0x4c]
cmp dword [esp + 0x58], 0
mov dword [esp + 0x54], ecx
jne 0x6704c796
mov dword [esp + 0x58], edi
mov edx, edi
cmp edi, 0x10
jl 0x6704c7a2
mov edx, 0x10
mov eax, dword [esp + 0x24]
fild dword [esp + 0x24]
test eax, eax
jns 0x6704c7b4
fadd qword [0x671ae588]
fst qword [esp + 0x70]
cmp edx, 9
jle 0x6704c7dc
mov eax, dword [esp + 0x3c]
fmul qword [edx*8 + 0x671ae410]
fild dword [esp + 0x3c]
test eax, eax
jns 0x6704c7d6
fadd qword [0x671ae588]
faddp st(1)
fst qword [esp + 0x70]
mov dword [esp + 0x3c], 0
cmp edi, 0xf
jg 0x6704c840
test ecx, ecx
je 0x6704d3c0
jle 0x6704c827
cmp ecx, 0x16
jg 0x6704c804
fmul qword [ecx*8 + 0x671ae458]
jmp 0x6704d3c0
mov eax, 0xf
sub eax, edi
lea ebx, [eax + 0x16]
cmp ecx, ebx
jg 0x6704c840
fmul qword [eax*8 + 0x671ae458]
sub ecx, eax
fmul qword [ecx*8 + 0x671ae458]
jmp 0x6704d3c0
cmp ecx, 0xffffffea
jl 0x6704c840
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, 0x671ae458
sub edx, ecx
fdiv qword [edx]
jmp 0x6704d3c0
mov eax, ecx
sub eax, edx
add eax, edi
test eax, eax
jle 0x6704c99a
mov ecx, eax
and ecx, 0xf
je 0x6704c860
fmul qword [ecx*8 + 0x671ae458]
fst qword [esp + 0x70]
and eax, 0xfffffff0
je 0x6704ca33
cmp eax, 0x134
jg 0x6704d365
sar eax, 4
test eax, eax
je 0x6704ca33
xor ecx, ecx
cmp eax, 1
jle 0x6704c89d
test al, 1
je 0x6704c891
fmul qword [ecx*8 + 0x671ae510]
sar eax, 1
inc ecx
cmp eax, 1
jg 0x6704c886
fst qword [esp + 0x70]
fstp qword [esp + 0x4c]
movzx eax, byte [esp + 0x53]
movzx edx, byte [esp + 0x52]
fld qword [ecx*8 + 0x671ae510]
shl eax, 8
lea eax, [eax + edx + 0xfcb0]
movzx edx, byte [esp + 0x51]
shl eax, 8
add eax, edx
movzx edx, byte [esp + 0x50]
shl eax, 8
add eax, edx
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x77], dl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x76], dl
mov edx, eax
mov byte [esp + 0x74], al
shr edx, 8
mov byte [esp + 0x75], dl
fmul qword [esp + 0x70]
fst qword [esp + 0x70]
fst qword [esp + 0x4c]
movzx eax, byte [esp + 0x53]
movzx ecx, byte [esp + 0x52]
movzx edx, byte [esp + 0x51]
shl eax, 8
add eax, ecx
movzx ecx, byte [esp + 0x50]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
and eax, 0x7ff00000
cmp eax, 0x7ca00000
ja 0x6704d365
cmp eax, 0x7c900000
jbe 0x6704c94a
mov dword [esp + 0x74], 0x7fefffff
mov dword [esp + 0x70], 0xffffffff
jmp 0x6704ca33
fstp qword [esp + 0x4c]
movzx edx, byte [esp + 0x53]
movzx eax, byte [esp + 0x52]
movzx ecx, byte [esp + 0x51]
shl edx, 8
lea eax, [edx + eax + 0x350]
movzx edx, byte [esp + 0x50]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x77], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x76], dl
mov byte [esp + 0x75], cl
mov byte [esp + 0x74], al
jmp 0x6704ca35
jns 0x6704ca33
neg eax
mov ecx, eax
and ecx, 0xf
je 0x6704c9b4
fdiv qword [ecx*8 + 0x671ae458]
fst qword [esp + 0x70]
and eax, 0xfffffff0
je 0x6704ca33
sar eax, 4
cmp eax, 0x20
jge 0x6704d346
xor ecx, ecx
cmp eax, 1
jle 0x6704c9df
test al, 1
je 0x6704c9d7
fmul qword [ecx*8 + 0x671ae538]
sar eax, 1
inc ecx
cmp eax, 1
jg 0x6704c9cc
fld st(0)
fld qword [ecx*8 + 0x671ae538]
fmulp st(2)
fxch st(1)
fst qword [esp + 0x70]
fld qword [0x67269af8]
fld st(0)
fucomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x6704ca31
fxch st(1)
fadd st(0), st(0)
fmul qword [ecx*8 + 0x671ae538]
fst qword [esp + 0x70]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x6704d348
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 1
jmp 0x6704ca35
fstp st(1)
fstp st(0)
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x58]
push edx
push edi
push eax
mov eax, dword [esp + 0x70]
call fcn.6704b160
add esp, 0xc
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
mov ebx, dword [ecx + 4]
mov ecx, ebx
mov esi, 1
shl esi, cl
lea edx, [esi*4 + 0x14]
push edx
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x6704ca7c
call sym.QtCore4.dll_void___cdecl_qBadAlloc_void_
mov ecx, dword [esp + 0x3c]
lea eax, [edi + 0xc]
mov dword [edi + 4], ebx
mov dword [edi + 8], esi
mov dword [edi + 0x10], 0
mov dword [eax], 0
mov edx, dword [ecx + 0x10]
lea edx, [edx*4 + 8]
push edx
add ecx, 0xc
push ecx
push eax
mov dword [esp + 0x44], edi
call sub.MSVCR100.dll_memcpy
fld qword [esp + 0x7c]
add esp, 0xc
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x50]
push ecx
sub esp, 8
fstp qword [esp]
call fcn.6704baa0
push 0x1c
mov dword [esp + 0x44], eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x6704cae5
call sym.QtCore4.dll_void___cdecl_qBadAlloc_void_
mov eax, 1
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 8], 2
mov dword [esi + 0xc], 0
mov dword [esp + 0x2c], esi
test eax, eax
js 0x6704cb13
xor edx, edx
xor ebx, ebx
jmp 0x6704cb1b
mov edx, eax
neg edx
mov ebx, edx
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x4c]
test eax, eax
js 0x6704cb2f
add ebx, eax
jmp 0x6704cb33
sub dword [esp + 0x24], eax
mov ecx, dword [esp + 0x64]
lea ecx, [eax + ecx - 1]
mov dword [esp + 0x34], ebx
cmp ecx, 0xfffffc02
jge 0x6704cb4e
add eax, 0x433
jmp 0x6704cb57
mov eax, 0x36
sub eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x24]
add ecx, eax
add ebx, eax
mov dword [esp + 0x24], ecx
cmp ebx, ecx
jge 0x6704cb69
mov ecx, ebx
cmp ecx, dword [esp + 0x34]
jle 0x6704cb73
mov ecx, dword [esp + 0x34]
test ecx, ecx
jle 0x6704cb81
sub dword [esp + 0x24], ecx
sub ebx, ecx
sub dword [esp + 0x34], ecx
test edx, edx
jle 0x6704cbb1
push edx
push esi
call fcn.6704c3d0
mov esi, dword [esp + 0x38]
push esi
push eax
mov dword [esp + 0x3c], eax
call fcn.6704b300
push esi
mov dword [esp + 0x54], eax
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [esp + 0x54]
add esp, 0x14
mov dword [esp + 0x30], edx
test ebx, ebx
jle 0x6704cbc7
mov eax, dword [esp + 0x30]
push ebx
push eax
call fcn.6704b4f0
add esp, 8
mov dword [esp + 0x30], eax
cmp dword [esp + 0x58], 0
jle 0x6704cbe0
mov ecx, dword [esp + 0x58]
push ecx
push edi
call fcn.6704c3d0
add esp, 8
mov dword [esp + 0x38], eax
cmp dword [esp + 0x24], 0
jle 0x6704cbfd
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.6704b4f0
add esp, 8
mov dword [esp + 0x38], eax
cmp dword [esp + 0x34], 0
jle 0x6704cc1a
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call fcn.6704b4f0
add esp, 8
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x34]
call fcn.6704b630
mov esi, dword [esp + 0x30]
mov edi, eax
mov ebx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
mov dword [edi + 0xc], 0
mov ecx, dword [esi + 0x10]
add esp, 4
sub eax, ecx
mov dword [esp + 0x34], edi
jne 0x6704cc79
lea edx, [edi + 0x14]
lea eax, [edx + ecx*4 - 4]
lea ecx, [esi + ecx*4 + 0x10]
mov esi, dword [eax]
cmp esi, dword [ecx]
jne 0x6704cc6f
cmp eax, edx
jbe 0x6704d1f1
mov esi, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp esi, dword [ecx]
je 0x6704cc5a
mov edx, dword [eax]
cmp edx, dword [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
js 0x6704d108
je 0x6704d1f1
mov esi, dword [esp + 0x2c]
call fcn.6704bc70
fld qword [0x6716e7c0]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x6704cdb8
test ebx, ebx
je 0x6704ccb8
fstp st(0)
fld1
fst qword [esp + 0x58]
fst qword [esp + 0x40]
jmp 0x6704cdd4
fld qword [esp + 0x70]
fst qword [esp + 0x58]
movzx eax, byte [esp + 0x5b]
movzx ecx, byte [esp + 0x5a]
movzx edx, byte [esp + 0x59]
shl eax, 8
add eax, ecx
movzx ecx, byte [esp + 0x58]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
jne 0x6704cd47
fst qword [esp + 0x58]
movzx edx, byte [esp + 0x5e]
movzx eax, byte [esp + 0x5d]
movzx ecx, byte [esp + 0x5c]
shl edx, 8
add edx, eax
shl edx, 8
add edx, ecx
test edx, 0xfffff
jne 0x6704cd47
fld1
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x6704cd2e
fstp st(1)
fld qword [0x6716a888]
fst qword [esp + 0x40]
fld st(0)
fchs
fstp qword [esp + 0x58]
jmp 0x6704cdda
fxch st(1)
fmul qword [0x6716a888]
fst qword [esp + 0x40]
fld st(0)
fchs
fstp qword [esp + 0x58]
jmp 0x6704cdda
fstp st(1)
fst qword [esp + 0x58]
movzx edx, byte [esp + 0x5b]
movzx eax, byte [esp + 0x5a]
movzx ecx, byte [esp + 0x59]
shl edx, 8
add edx, eax
movzx eax, byte [esp + 0x58]
shl edx, 8
add edx, ecx
shl edx, 8
add edx, eax
cmp edx, 1
jne 0x6704cda6
fst qword [esp + 0x58]
movzx ecx, byte [esp + 0x5f]
movzx edx, byte [esp + 0x5e]
movzx eax, byte [esp + 0x5d]
shl ecx, 8
add ecx, edx
movzx edx, byte [esp + 0x5c]
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, edx
je 0x6704d346
mov edi, dword [esp + 0x34]
fld1
fst qword [esp + 0x40]
fld qword [0x6716ac10]
fstp qword [esp + 0x58]
jmp 0x6704cdda
fmul qword [0x6716a888]
fst qword [esp + 0x40]
test ebx, ebx
je 0x6704cdcc
fst qword [esp + 0x58]
jmp 0x6704cdd4
fld st(0)
fchs
fstp qword [esp + 0x58]
fld qword [esp + 0x70]
fxch st(1)
fxch st(1)
fst qword [esp + 0x24]
movzx esi, byte [esp + 0x2b]
movzx eax, byte [esp + 0x2a]
movzx ecx, byte [esp + 0x29]
movzx edx, byte [esp + 0x28]
shl esi, 8
add esi, eax
shl esi, 8
add esi, ecx
shl esi, 8
add esi, edx
and esi, 0x7ff00000
cmp esi, 0x7fe00000
jne 0x6704cfa4
fstp st(1)
sub esp, 8
fst qword [esp + 0x80]
fstp qword [esp + 0x2c]
movzx eax, byte [esp + 0x33]
movzx ecx, byte [esp + 0x32]
movzx edx, byte [esp + 0x31]
shl eax, 8
lea eax, [eax + ecx + 0xfcb0]
movzx ecx, byte [esp + 0x30]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x7f], dl
mov ecx, eax
mov edx, eax
shr ecx, 0x10
shr edx, 8
mov byte [esp + 0x7e], cl
mov byte [esp + 0x7d], dl
mov byte [esp + 0x7c], al
fld qword [esp + 0x78]
fstp qword [esp]
call fcn.6704b7e0
fmul qword [esp + 0x60]
add esp, 8
fadd qword [esp + 0x70]
fst qword [esp + 0x70]
fst qword [esp + 0x58]
movzx eax, byte [esp + 0x5f]
movzx ecx, byte [esp + 0x5e]
movzx edx, byte [esp + 0x5d]
shl eax, 8
add eax, ecx
movzx ecx, byte [esp + 0x5c]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
and eax, 0x7ff00000
cmp eax, 0x7ca00000
jb 0x6704cf53
fstp st(0)
fld qword [esp + 0x78]
fst qword [esp + 0x58]
movzx edx, byte [esp + 0x5f]
movzx eax, byte [esp + 0x5e]
movzx ecx, byte [esp + 0x5d]
shl edx, 8
add edx, eax
movzx eax, byte [esp + 0x5c]
shl edx, 8
add edx, ecx
shl edx, 8
add edx, eax
cmp edx, 0x7fefffff
jne 0x6704cf3c
fstp qword [esp + 0x58]
movzx ecx, byte [esp + 0x5b]
movzx edx, byte [esp + 0x5a]
movzx eax, byte [esp + 0x59]
shl ecx, 8
add ecx, edx
movzx edx, byte [esp + 0x58]
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, edx
cmp ecx, 0xffffffff
je 0x6704d367
mov edi, dword [esp + 0x34]
mov dword [esp + 0x74], 0x7fefffff
mov dword [esp + 0x70], 0xffffffff
jmp 0x6704d0e2
fstp st(0)
mov dword [esp + 0x74], 0x7fefffff
mov dword [esp + 0x70], 0xffffffff
jmp 0x6704d0e2
fstp qword [esp + 0x58]
movzx eax, byte [esp + 0x5f]
movzx ecx, byte [esp + 0x5e]
movzx edx, byte [esp + 0x5d]
shl eax, 8
lea eax, [eax + ecx + 0x350]
movzx ecx, byte [esp + 0x5c]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x77], dl
mov ecx, eax
shr ecx, 0x10
mov edx, eax
shr edx, 8
mov byte [esp + 0x76], cl
mov byte [esp + 0x75], dl
mov byte [esp + 0x74], al
fld qword [esp + 0x70]
jmp 0x6704cffc
cmp esi, 0x3400000
ja 0x6704cfdc
fld1
fcomp st(2)
fnstsw ax
test ah, 0x41
jp 0x6704cfdc
fxch st(1)
fadd qword [0x6716a888]
call fcn.671509c0
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
fst qword [esp + 0x58]
test ebx, ebx
jne 0x6704cfe0
fchs
fstp qword [esp + 0x58]
jmp 0x6704cfe2
fstp st(1)
jmp 0x6704cfe2
fstp st(0)
sub esp, 8
fstp qword [esp]
call fcn.6704b7e0
fmul qword [esp + 0x60]
add esp, 8
fadd qword [esp + 0x70]
fst qword [esp + 0x70]
fst qword [esp + 0x58]
movzx eax, byte [esp + 0x5f]
movzx ecx, byte [esp + 0x5e]
movzx edx, byte [esp + 0x5d]
shl eax, 8
add eax, ecx
movzx ecx, byte [esp + 0x5c]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
and eax, 0x7ff00000
cmp esi, eax
jne 0x6704d0e0
fld qword [esp + 0x40]
fld st(0)
call fcn.671509c0
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
fsubp st(1)
test ebx, ebx
jne 0x6704d0b0
fxch st(1)
fst qword [esp + 0x58]
movzx edx, byte [esp + 0x5b]
movzx eax, byte [esp + 0x5a]
movzx ecx, byte [esp + 0x59]
shl edx, 8
add edx, eax
movzx eax, byte [esp + 0x58]
shl edx, 8
add edx, ecx
shl edx, 8
add edx, eax
jne 0x6704d0b4
fstp qword [esp + 0x58]
movzx ecx, byte [esp + 0x5e]
movzx edx, byte [esp + 0x5d]
movzx eax, byte [esp + 0x5c]
shl ecx, 8
add ecx, edx
shl ecx, 8
add ecx, eax
test ecx, 0xfffff
jne 0x6704d0b6
fcomp qword [0x671ae580]
fnstsw ax
test ah, 5
jnp 0x6704d38c
mov edi, dword [esp + 0x34]
jmp 0x6704d0e2
fstp st(1)
jmp 0x6704d0b6
fstp st(0)
fld qword [0x671ae578]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x6704d38a
fcomp qword [0x671ae570]
fnstsw ax
test ah, 0x41
je 0x6704d38c
mov edi, dword [esp + 0x34]
jmp 0x6704d0e2
fstp st(0)
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.MSVCR100.dll_free]
push ecx
call esi
mov edx, dword [esp + 0x3c]
push edx
call esi
mov eax, dword [esp + 0x34]
push eax
call esi
push edi
call esi
add esp, 0x10
jmp 0x6704ca50
test ebx, ebx
jne 0x6704d38c
fld qword [esp + 0x70]
fst qword [esp + 0x64]
movzx ecx, byte [esp + 0x67]
movzx edx, byte [esp + 0x66]
movzx eax, byte [esp + 0x65]
shl ecx, 8
add ecx, edx
movzx edx, byte [esp + 0x64]
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, edx
jne 0x6704d38a
fstp qword [esp + 0x64]
movzx eax, byte [esp + 0x6a]
movzx ecx, byte [esp + 0x69]
movzx edx, byte [esp + 0x68]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
test eax, 0xfffff
jne 0x6704d38c
mov eax, dword [esp + 0x34]
push 1
push eax
call fcn.6704b4f0
mov edx, eax
mov eax, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x34], edx
call fcn.6704b5e0
test eax, eax
jle 0x6704d38c
fld qword [esp + 0x70]
fstp qword [esp + 0x64]
movzx eax, byte [esp + 0x6b]
movzx edx, byte [esp + 0x6a]
movzx ecx, byte [esp + 0x69]
shl eax, 8
add eax, edx
movzx edx, byte [esp + 0x68]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
and eax, 0x7ff00000
dec eax
or eax, 0xfffff
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x77], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x76], dl
mov byte [esp + 0x75], cl
mov byte [esp + 0x74], al
mov dword [esp + 0x70], 0xffffffff
jmp 0x6704d38c
fld qword [esp + 0x70]
fst qword [esp + 0x64]
test ebx, ebx
je 0x6704d2b9
movzx ecx, byte [esp + 0x6a]
movzx edx, byte [esp + 0x69]
movzx eax, byte [esp + 0x68]
shl ecx, 8
add ecx, edx
shl ecx, 8
add ecx, eax
and ecx, 0xfffff
cmp ecx, 0xfffff
jne 0x6704d306
fst qword [esp + 0x64]
movzx ecx, byte [esp + 0x67]
movzx edx, byte [esp + 0x66]
movzx eax, byte [esp + 0x65]
shl ecx, 8
add ecx, edx
movzx edx, byte [esp + 0x64]
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, edx
cmp ecx, 0xffffffff
jne 0x6704d306
fstp qword [esp + 0x64]
movzx eax, byte [esp + 0x6b]
movzx ecx, byte [esp + 0x6a]
movzx edx, byte [esp + 0x69]
shl eax, 8
add eax, ecx
movzx ecx, byte [esp + 0x68]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
and eax, 0x7ff00000
add eax, 0x100000
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x77], dl
mov ecx, eax
shr ecx, 0x10
mov edx, eax
shr edx, 8
mov byte [esp + 0x76], cl
mov byte [esp + 0x75], dl
mov byte [esp + 0x74], al
mov dword [esp + 0x70], 0
jmp 0x6704d38c
movzx eax, byte [esp + 0x6a]
movzx ecx, byte [esp + 0x69]
movzx edx, byte [esp + 0x68]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
test eax, 0xfffff
jne 0x6704d306
fst qword [esp + 0x64]
movzx eax, byte [esp + 0x67]
movzx ecx, byte [esp + 0x66]
movzx edx, byte [esp + 0x65]
shl eax, 8
add eax, ecx
movzx ecx, byte [esp + 0x64]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
je 0x6704d193
fst qword [esp + 0x78]
test byte [esp + 0x78], 1
je 0x6704d38a
sub esp, 8
fstp qword [esp]
call fcn.6704b7e0
add esp, 8
test ebx, ebx
je 0x6704d32d
fadd qword [esp + 0x70]
fstp qword [esp + 0x70]
jmp 0x6704d38c
fsubr qword [esp + 0x70]
fst qword [esp + 0x70]
fld qword [0x67269af8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x6704d38c
jmp 0x6704d348
fstp st(0)
fldz
mov eax, dword [ebp + 0x10]
fst qword [esp + 0x70]
test eax, eax
je 0x6704d358
mov byte [eax], 0
cmp dword [esp + 0x3c], 0
jne 0x6704d38a
mov esi, dword [esp + 0x20]
jmp 0x6704d3c0
fstp st(0)
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6704d371
mov byte [eax], 0
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x74], 0x7ff00000
mov dword [esp + 0x70], 0
je 0x6704d3b8
jmp 0x6704d38c
fstp st(0)
mov edx, dword [esp + 0x30]
mov esi, dword [sym.imp.MSVCR100.dll_free]
push edx
call esi
mov eax, dword [esp + 0x3c]
push eax
call esi
mov ecx, dword [esp + 0x34]
push ecx
call esi
mov edx, dword [esp + 0x48]
push edx
call esi
mov eax, dword [esp + 0x44]
push eax
call esi
add esp, 0x14
mov esi, dword [esp + 0x20]
fld qword [esp + 0x70]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6704d3c9
mov dword [eax], esi
cmp dword [esp + 0x6c], 0
je 0x6704d3d2
fchs
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret