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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
cmp ecx, 0x13
jle 0x683168c0
mov eax, 4
xor edi, edi
nop
add eax, eax
add edi, 1
lea edx, [eax + 0xf]
cmp ecx, edx
jg 0x68316870
mov dword [esp], edi
call fcn.68319350
lea edx, [esi + 1]
mov dword [eax], edi
movzx ecx, byte [esi]
lea edi, [eax + 4]
mov byte [eax + 4], cl
mov eax, edi
test cl, cl
je 0x683168af
lea esi, [esi]
nop
movzx ecx, byte [edx]
add eax, 1
add edx, 1
mov byte [eax], cl
test cl, cl
jne 0x683168a0
test ebx, ebx
je 0x683168b5
mov dword [ebx], eax
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret
xor edi, edi
jmp 0x6831687c
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [esp + 0xc4]
mov esi, dword [esp + 0xd0]
mov ecx, dword [esp + 0xdc]
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0xd4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], esi
mov esi, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, eax
mov eax, esi
mov dword [esp + 0x30], edi
and eax, 0xffffffcf
mov dword [ecx], eax
mov eax, esi
and eax, 7
cmp eax, 3
je 0x68316e20
mov ecx, esi
and ecx, 4
mov dword [esp + 0x2c], ecx
jne 0x68316bb8
test eax, eax
je 0x68316de8
sub eax, 1
xor ebx, ebx
cmp eax, 1
jbe 0x68316c00
add esp, 0xac
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
cmp eax, 4
jne 0x68316ba8
mov eax, dword [esp + 0x1c]
mov dword [eax], 0xffff8000
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc8], 3
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], 0x683ed159
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
jmp 0x68316850
mov edi, dword [edi]
xor edx, edx
mov eax, 0x20
cmp edi, 0x20
jle 0x68316c17
add eax, eax
add edx, 1
cmp edi, eax
jg 0x68316c0e
mov dword [esp], edx
lea ebx, [edi - 1]
sar ebx, 5
shl ebx, 2
call fcn.68319350
mov dword [esp + 0x38], ebx
mov ebp, eax
mov eax, dword [esp + 0x24]
lea edx, [ebp + 0x14]
lea ecx, [eax + ebx]
lea esi, [esi]
nop
mov ebx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ebx
cmp ecx, eax
jae 0x68316c40
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x38]
add ecx, 1
add eax, 1
add ebx, 4
cmp ecx, eax
mov eax, 4
cmovb ebx, eax
sar ebx, 2
jmp 0x68316c78
test ebx, ebx
je 0x68316e60
mov eax, ebx
sub ebx, 1
mov edx, dword [ebp + ebx*4 + 0x14]
test edx, edx
je 0x68316c70
bsr edx, dword [ebp + ebx*4 + 0x14]
mov dword [ebp + 0x10], eax
shl eax, 5
xor edx, 0x1f
sub eax, edx
mov ebx, eax
mov dword [esp], ebp
call fcn.68318d50
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x60], ecx
test eax, eax
jne 0x68316e70
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x68316de0
lea eax, [esp + 0x9c]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.68319d90
mov ecx, dword [esp + 0x60]
fstp qword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
add ecx, ebx
mov dword [esp + 0x38], eax
mov eax, edx
and eax, 0xfffff
mov dword [esp + 0x50], ecx
sub ecx, 1
or eax, 0x3ff00000
mov dword [esp + 0x40], ecx
mov edx, ecx
mov dword [esp + 0x3c], eax
fld qword [esp + 0x38]
sar edx, 0x1f
fsub dword [0x683ed160]
fmul qword [str.aCoc]
fadd qword [0x683ed170]
fild dword [esp + 0x40]
fmul qword [0x683ed178]
mov dword [esp + 0x40], edx
xor edx, ecx
sub edx, dword [esp + 0x40]
sub edx, 0x435
faddp st(1)
test edx, edx
jle 0x68316d50
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fmul qword [0x683ed180]
faddp st(1)
fnstcw word [esp + 0x8e]
movzx edx, word [esp + 0x8e]
or dh, 0xc
mov word [esp + 0x8c], dx
fldcw word [esp + 0x8c]
fist dword [esp + 0x4c]
fldcw word [esp + 0x8e]
fldz
fcompi st(1)
ja 0x683174b0
fstp st(0)
mov edx, ecx
shl edx, 0x14
add eax, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov eax, ebx
sub eax, ecx
lea ecx, [eax - 1]
mov dword [esp + 0x58], ecx
cmp edx, 0x16
ja 0x68316ea0
fld qword [edx*8 + 0x683ed200]
fst qword [esp + 0x40]
fld qword [esp + 0x38]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x68317150
sub edx, 1
mov dword [esp + 0x74], 0
mov dword [esp + 0x4c], edx
jmp 0x68316ea8
mov dword [esp], ebp
call fcn.68319440
mov eax, dword [esp + 0x1c]
mov dword [eax], 1
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0x683ed15d
call 0x68316850
add esp, 0xac
mov ebx, eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov dword [eax], 0xffff8000
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc8], 8
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], str.Infinity
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
jmp 0x68316850
mov dword [ebp + 0x10], 0
jmp 0x68316c97
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.68318c40
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x9c]
mov dword [esp + 0x60], eax
sub ebx, dword [esp + 0x9c]
jmp 0x68316cb6
mov dword [esp + 0x74], 1
mov edx, dword [esp + 0x58]
mov dword [esp + 0x64], 0
test edx, edx
js 0x68317498
mov eax, dword [esp + 0x4c]
test eax, eax
jns 0x6831716c
mov eax, dword [esp + 0x4c]
sub dword [esp + 0x64], eax
mov dword [esp + 0x4c], 0
mov edx, eax
mov dword [esp + 0x6c], eax
neg edx
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0x18]
cmp eax, 9
ja 0x68317188
cmp eax, 5
jg 0x683174e0
mov eax, dword [esp + 0x50]
add eax, 0x3fd
cmp eax, 0x7f7
setbe al
movzx eax, al
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x18]
cmp eax, 4
je 0x68317ae0
cmp eax, 5
je 0x683178e0
cmp eax, 2
jne 0x683175f0
mov dword [esp + 0x68], 0
mov ecx, dword [esp + 0x34]
mov eax, 1
test ecx, ecx
cmovg eax, ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
mov dword [esp], eax
call fcn.68316810
cmp dword [esp + 0x40], 0xe
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
setbe al
and al, byte [esp + 0x78]
sub dword [esp + 0x50], 1
mov byte [esp + 0x78], al
je 0x68316fb0
mov edx, dword [esp + 0x50]
mov eax, 2
test edx, edx
cmovns eax, edx
and esi, 8
mov dword [esp + 0x50], eax
mov edx, eax
je 0x68317580
mov eax, 3
sub eax, edx
mov dword [esp + 0x50], eax
cmp byte [esp + 0x78], 0
je 0x68317580
mov eax, dword [esp + 0x50]
or eax, dword [esp + 0x6c]
jne 0x68317580
mov eax, dword [esp + 0x74]
fld qword [esp + 0x38]
mov dword [esp + 0x9c], 0
test eax, eax
je 0x68316fea
fld1
fcompi st(1)
ja 0x68317ecd
fld st(0)
fadd st(1)
fadd dword [0x683ed19c]
fstp qword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x50], eax
mov eax, edx
sub eax, 0x3400000
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x68317543
mov dword [esp + 0x80], 0
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x68]
fld qword [esp + 0x50]
fld qword [esi*8 + 0x683ed1f8]
test eax, eax
je 0x68317cbd
fxch st(2)
fnstcw word [esp + 0x8e]
mov ecx, dword [esp + 0x5c]
movzx eax, word [esp + 0x8e]
or ah, 0xc
mov word [esp + 0x8c], ax
lea eax, [ecx + 1]
fldcw word [esp + 0x8c]
fist dword [esp + 0x50]
fldcw word [esp + 0x8e]
fxch st(2)
fdivr dword [0x683ed1a4]
movzx edx, byte [esp + 0x50]
add edx, 0x30
mov byte [ecx], dl
fsubrp st(1)
fild dword [esp + 0x50]
fsubp st(2)
fcomi st(1)
jbe 0x683170f5
fstp st(0)
jmp 0x683180d6
mov ecx, dword [esp + 0x9c]
lea edx, [ecx + 1]
mov dword [esp + 0x9c], edx
cmp edx, esi
jge 0x68317567
fld dword [0x683ed194]
add eax, 1
fmul st(1), st(0)
fmulp st(2)
fxch st(1)
fldcw word [esp + 0x8c]
fist dword [esp + 0x50]
fldcw word [esp + 0x8e]
fild dword [esp + 0x50]
movzx edx, byte [esp + 0x50]
add edx, 0x30
fsubp st(1)
fxch st(1)
mov byte [eax - 1], dl
fcomi st(1)
ja 0x683180d4
fld st(1)
fsubr dword [0x683ed190]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x683170a0
fstp st(0)
fstp st(0)
movzx edx, byte [eax - 1]
jmp 0x68317115
fstp st(0)
fstp st(0)
fstp st(0)
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x5c]
mov ecx, eax
add esi, 1
mov dword [esp + 0x34], esi
lea esi, [esi]
lea eax, [ecx - 1]
cmp dl, 0x39
jne 0x68317fd3
cmp eax, ebx
je 0x68318023
movzx edx, byte [eax - 1]
mov ecx, eax
jmp 0x68317130
mov edx, dword [esp + 0x58]
mov dword [esp + 0x74], 0
mov dword [esp + 0x64], 0
test edx, edx
js 0x68317498
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x70], 0
add dword [esp + 0x58], ecx
mov dword [esp + 0x6c], ecx
jmp 0x68316ee4
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], edi
fild dword [esp + 0x34]
fmul qword [0x683ed188]
fldcw word [esp + 0x8c]
fistp dword [esp + 0x34]
fldcw word [esp + 0x8e]
mov eax, dword [esp + 0x34]
add eax, 3
mov dword [esp], eax
mov dword [esp + 0x9c], eax
call fcn.68316810
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], eax
sub eax, 1
mov dword [esp + 0x50], eax
jne 0x683174f4
mov esi, dword [esp + 0x60]
test esi, esi
js 0x68317fe9
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x6c]
cmp dword [eax + 0x14], esi
jge 0x68317b02
mov dword [esp + 0x34], 0
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
lea esi, [esi]
nop
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x60]
sub edi, ebx
lea ecx, [edi + 1]
mov eax, dword [eax + 4]
sub edx, edi
mov dword [esp + 0x9c], ecx
cmp edx, eax
jge 0x68317918
mov esi, dword [esp + 0x18]
lea edx, [esi - 3]
and edx, 0xfffffffd
je 0x68317918
mov ecx, dword [esp + 0x60]
sub ecx, eax
add ecx, 1
cmp esi, 1
mov esi, dword [esp + 0x40]
setg dl
mov dword [esp + 0x9c], ecx
test esi, esi
setg al
test dl, al
je 0x6831727c
cmp ecx, esi
jg 0x68317923
mov eax, dword [esp + 0x64]
add dword [esp + 0x58], ecx
mov edi, dword [esp + 0x70]
mov dword [esp + 0x60], eax
add eax, ecx
mov dword [esp + 0x64], eax
mov dword [esp], 1
call fcn.68319590
mov dword [esp + 0x68], 1
mov esi, eax
mov ecx, dword [esp + 0x60]
test ecx, ecx
jle 0x683172d6
mov edx, dword [esp + 0x58]
test edx, edx
jle 0x683172d6
cmp ecx, edx
mov eax, edx
cmovle eax, ecx
sub dword [esp + 0x64], eax
sub ecx, eax
sub edx, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x68317324
mov eax, dword [esp + 0x68]
test eax, eax
je 0x68317ac2
test edi, edi
jle 0x68317318
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.683197f0
mov dword [esp + 4], ebp
mov dword [esp], eax
mov esi, eax
call fcn.68319640
mov dword [esp], ebp
mov dword [esp + 0x38], eax
call fcn.68319440
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x70]
sub eax, edi
jne 0x68317ac6
mov dword [esp], 1
call fcn.68319590
cmp ebx, 1
mov edi, dword [esp + 0x4c]
sete bl
cmp dword [esp + 0x18], 1
mov dword [esp + 0x38], eax
mov ecx, eax
setle al
and ebx, eax
test edi, edi
jg 0x68317680
xor edi, edi
test bl, bl
jne 0x68317f68
mov eax, dword [esp + 0x4c]
mov ebx, 0x1f
test eax, eax
jne 0x6831769a
sub ebx, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
sub ebx, 4
and ebx, 0x1f
add edx, ebx
mov dword [esp + 0x9c], ebx
mov eax, ebx
test edx, edx
jle 0x6831739f
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.683199d0
mov ebp, eax
mov eax, dword [esp + 0x9c]
add eax, dword [esp + 0x58]
test eax, eax
jle 0x683173bb
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.683199d0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x18], 2
setg dl
test eax, eax
jne 0x68317968
mov eax, dword [esp + 0x40]
test eax, eax
jg 0x683176b0
test dl, dl
je 0x683176b0
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x6831765b
mov eax, dword [esp + 0x38]
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], eax
call fcn.683194b0
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 0x38], eax
call fcn.68319b10
test eax, eax
jle 0x6831765b
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x5c]
add eax, 2
mov dword [esp + 0x34], eax
add dword [esp + 0x5c], 1
mov byte [ebx], 0x31
mov dword [esp + 0x2c], 0x20
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.68319440
test esi, esi
je 0x6831745a
mov dword [esp], esi
call fcn.68319440
mov dword [esp], ebp
call fcn.68319440
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x34]
mov byte [eax], 0
mov dword [esi], edi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x6831747d
mov dword [esi], eax
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x2c]
or dword [eax], esi
add esp, 0xac
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
mov dword [esp + 0x58], 0
sub edx, eax
mov dword [esp + 0x64], edx
jmp 0x68316ebc
fild dword [esp + 0x4c]
fucomi st(1)
jp 0x683174c4
fcompi st(1)
fstp st(0)
je 0x68316d88
jmp 0x683174d0
fstp st(0)
fstp st(0)
lea esi, [esi]
nop
sub dword [esp + 0x4c], 1
jmp 0x68316d88
sub eax, 4
mov dword [esp + 0x78], 0
mov dword [esp + 0x18], eax
jmp 0x68316f12
mov dword [esp + 0x34], 0
mov byte [esp + 0x78], 0
mov dword [esp + 0x68], 1
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
jmp 0x68316f88
fld st(0)
fadd st(1)
fadd dword [0x683ed19c]
fstp qword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x50], eax
mov eax, edx
sub eax, 0x3400000
mov dword [esp + 0x54], eax
fsub dword [0x683ed1a0]
fld qword [esp + 0x50]
fxch st(1)
fcomi st(1)
ja 0x68317f81
fxch st(1)
fchs
fcompi st(1)
fstp st(0)
ja 0x68317651
jmp 0x68317573
fstp st(0)
fstp st(0)
jmp 0x68317573
fstp st(0)
jmp 0x68317573
fstp st(0)
mov dword [esp + 0x50], 0
lea esi, [esi]
nop
mov ecx, dword [esp + 0x60]
test ecx, ecx
js 0x68317630
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x6c]
cmp dword [esi + 0x14], eax
jl 0x68317630
mov edx, dword [esp + 0x34]
fld qword [eax*8 + 0x683ed200]
test edx, edx
jns 0x68317b15
mov esi, dword [esp + 0x40]
test esi, esi
jg 0x68317b15
jne 0x6831764f
fmul dword [0x683ed1a0]
fld qword [esp + 0x38]
fxch st(1)
fcompi st(1)
fstp st(0)
jae 0x68317651
add eax, 2
mov dword [esp + 0x38], 0
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x34], eax
jmp 0x68317432
cmp eax, 3
jne 0x68317190
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], eax
add eax, 1
mov dword [esp + 0x40], eax
test eax, eax
jle 0x68317aed
mov dword [esp + 0x9c], eax
jmp 0x68316f5a
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x68317220
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x70]
xor esi, esi
mov dword [esp + 0x60], eax
jmp 0x683172a8
fstp st(0)
mov dword [esp + 0x38], 0
xor esi, esi
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x2c], 0x10
neg eax
mov dword [esp + 0x34], eax
jmp 0x68317442
mov dword [esp + 4], edi
mov dword [esp], ecx
call fcn.683197f0
mov dword [esp + 0x38], eax
test bl, bl
jne 0x683178ed
xor edi, edi
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx + 0x10]
bsr ebx, dword [ebx + eax*4 + 0x10]
xor ebx, 0x1f
jmp 0x6831736d
mov eax, dword [esp + 0x6c]
add eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x683179e8
add ebx, dword [esp + 0x60]
test ebx, ebx
jle 0x683176dd
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.683199d0
mov esi, eax
mov ebx, esi
test edi, edi
jne 0x68317f24
mov dword [esp + 0x9c], 1
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
jmp 0x683177b9
mov dword [esp], edx
call fcn.68319440
mov eax, 1
test edi, edi
js 0x68317dd0
or edi, dword [esp + 0x18]
jne 0x68317728
mov edi, dword [esp + 0x24]
test byte [edi], 1
je 0x68317dd0
mov edi, dword [esp + 0x30]
add edi, 1
test eax, eax
jle 0x6831773e
cmp dword [esp + 0x50], 2
jne 0x68317fa0
movzx eax, byte [esp + 0x28]
mov byte [edi - 1], al
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x9c], eax
je 0x68317fca
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.683194b0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov ebp, eax
mov dword [esp], esi
cmp esi, ebx
je 0x683178d0
call fcn.683194b0
mov dword [esp], ebx
mov dword [esp + 8], 0
mov esi, eax
mov dword [esp + 4], 0xa
call fcn.683194b0
mov ebx, eax
add dword [esp + 0x9c], 1
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.683168f0
mov dword [esp + 4], esi
mov dword [esp], ebp
lea ecx, [eax + 0x30]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], eax
call fcn.68319b10
mov dword [esp + 4], ebx
mov edi, eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.68319b60
mov edx, eax
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x68317700
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 0x60], edx
call fcn.68319b10
mov edx, dword [esp + 0x60]
mov dword [esp + 0x58], eax
mov dword [esp], edx
call fcn.68319440
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x58]
jne 0x68318248
mov edx, dword [esp + 0x24]
mov ecx, dword [edx]
mov edx, ecx
mov dword [esp + 0x58], ecx
and edx, 1
or edx, dword [esp + 0x50]
jne 0x6831770d
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x28], 0x39
mov ecx, edi
lea edi, [edx + 1]
je 0x68318099
test ecx, ecx
jle 0x68318227
mov eax, dword [esp + 0x4c]
add eax, 0x31
mov dword [esp + 0x28], eax
mov eax, 0x20
movzx ecx, byte [esp + 0x28]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov byte [edx], cl
mov ecx, esi
mov esi, ebx
lea esi, [esi]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
mov dword [esp], eax
call fcn.68319440
test esi, esi
je 0x68317bf2
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x683180c7
cmp ecx, esi
je 0x683180c7
mov dword [esp], ecx
call fcn.68319440
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x5c], edi
jmp 0x68317452
call fcn.683194b0
mov esi, eax
mov ebx, eax
jmp 0x683177ad
mov dword [esp + 0x68], 1
jmp 0x68317601
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
add eax, 1
cmp dword [esp + 0x28], eax
jle 0x68317698
add dword [esp + 0x64], 1
mov edi, 1
add dword [esp + 0x58], 1
jmp 0x6831735c
cmp dword [esp + 0x18], 1
jle 0x6831727c
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x70]
sub eax, 1
cmp esi, eax
jl 0x68317bff
sub esi, eax
mov edi, esi
mov eax, dword [esp + 0x40]
test eax, eax
js 0x68317eb1
mov esi, dword [esp + 0x64]
add dword [esp + 0x58], eax
mov dword [esp + 0x9c], eax
add eax, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], eax
jmp 0x68317292
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov byte [esp + 0x28], dl
mov dword [esp + 4], eax
call fcn.68319b10
movzx edx, byte [esp + 0x28]
test eax, eax
jns 0x683173cf
mov dword [esp], ebp
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
sub eax, 1
mov dword [esp + 0x30], eax
call fcn.683194b0
movzx edx, byte [esp + 0x28]
mov ecx, dword [esp + 0x68]
mov ebp, eax
mov eax, dword [esp + 0x7c]
test eax, eax
setle al
and edx, eax
test ecx, ecx
jne 0x6831813f
test dl, dl
jne 0x683180b2
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
lea esi, [esi]
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x18], esi
mov dword [esp + 0x9c], 1
mov esi, dword [esp + 0x38]
jmp 0x68317a2a
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.683194b0
add dword [esp + 0x9c], 1
mov ebp, eax
mov dword [esp + 4], esi
add edi, 1
mov dword [esp], ebp
call fcn.683168f0
add eax, 0x30
mov byte [edi - 1], al
cmp dword [esp + 0x9c], ebx
jl 0x68317a08
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x68317c2d
mov edx, dword [ebp + 0x10]
movzx eax, byte [edi - 1]
cmp ebx, 2
je 0x68317c73
cmp edx, 1
jg 0x68317a7a
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x68317ab6
mov ebx, dword [esp + 0x5c]
jmp 0x68317a8e
cmp edx, ebx
je 0x68317c14
movzx eax, byte [edx - 1]
mov edi, edx
lea edx, [edi - 1]
cmp al, 0x39
je 0x68317a80
add eax, 1
mov dword [esp + 0x2c], 0x20
mov byte [edx], al
jmp 0x68317888
movzx eax, byte [edi - 2]
mov edi, edx
lea edx, [edi - 1]
cmp al, 0x30
je 0x68317ab0
jmp 0x68317888
mov eax, dword [esp + 0x70]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.683197f0
mov ebp, eax
jmp 0x68317324
mov dword [esp + 0x68], 1
jmp 0x68316f39
mov dword [esp + 0x9c], 1
mov eax, 1
jmp 0x68316f5a
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x40], 0xffffffff
fld qword [eax*8 + 0x683ed200]
fnstcw word [esp + 0x8e]
fld qword [esp + 0x38]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x9c], 1
mov esi, dword [esp + 0x5c]
movzx eax, word [esp + 0x8e]
add ecx, 1
fld st(0)
mov dword [esp + 0x34], ecx
fdiv st(2)
or ah, 0xc
mov word [esp + 0x8c], ax
lea eax, [esi + 1]
fldcw word [esp + 0x8c]
fistp dword [esp + 0x18]
fldcw word [esp + 0x8e]
fild dword [esp + 0x18]
movzx edi, byte [esp + 0x18]
lea edx, [edi + 0x30]
fmul st(2)
mov byte [esi], dl
fsubp st(1)
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jnp 0x68317bdf
lea esi, [esi]
mov edx, dword [esp + 0x9c]
cmp edx, dword [esp + 0x40]
je 0x68317c89
fmul dword [0x683ed194]
add edx, 1
add eax, 1
mov dword [esp + 0x9c], edx
fld st(0)
fdiv st(2)
fldcw word [esp + 0x8c]
fistp dword [esp + 0x18]
fldcw word [esp + 0x8e]
fild dword [esp + 0x18]
movzx esi, byte [esp + 0x18]
lea edx, [esi + 0x30]
fmul st(2)
mov byte [eax - 1], dl
fsubp st(1)
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jp 0x68317b88
jne 0x68317b88
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x5c], eax
jmp 0x6831745a
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x5c], edi
jmp 0x6831745a
mov edx, eax
xor edi, edi
sub edx, dword [esp + 0x70]
mov dword [esp + 0x70], eax
add dword [esp + 0x4c], edx
jmp 0x6831793a
mov eax, dword [esp + 0x5c]
add dword [esp + 0x34], 1
mov dword [esp + 0x2c], 0x20
mov byte [eax], 0x31
jmp 0x68317888
mov dword [esp], ebp
mov dword [esp + 4], 1
mov dword [esp + 0x18], ecx
call fcn.683199d0
mov ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.68319b10
mov ecx, dword [esp + 0x18]
test eax, eax
movzx eax, byte [edi - 1]
jg 0x68317a7a
jne 0x68317c70
test byte [esp + 0x28], 1
jne 0x68317a7a
mov edx, dword [ebp + 0x10]
cmp edx, 1
jle 0x6831817f
mov dword [esp + 0x2c], 0x10
jmp 0x68317ab6
mov esi, dword [esp + 0x50]
test esi, esi
je 0x6831810d
fstp st(0)
fstp st(0)
cmp esi, 1
je 0x68318197
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x5c], eax
jmp 0x68317cb0
fstp st(0)
fstp st(0)
mov dword [esp + 0x2c], 0x10
jmp 0x6831745a
fnstcw word [esp + 0x8e]
fmulp st(1)
xor ecx, ecx
mov dword [esp + 0x84], ebp
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x88], edi
mov edi, ecx
movzx edx, word [esp + 0x8e]
movzx ebp, byte [esp + 0x78]
mov dword [esp + 0x9c], 1
or dh, 0xc
fld st(1)
mov word [esp + 0x8c], dx
jmp 0x68317d1a
add ecx, 1
fmul dword [0x683ed194]
mov edi, ebp
mov dword [esp + 0x9c], ecx
fldcw word [esp + 0x8c]
fist dword [esp + 0x50]
fldcw word [esp + 0x8e]
mov edx, dword [esp + 0x50]
test edx, edx
je 0x68317d3c
fild dword [esp + 0x50]
mov edi, ebp
fsubp st(1)
add eax, 1
add edx, 0x30
mov byte [eax - 1], dl
mov ecx, dword [esp + 0x9c]
cmp ecx, esi
jne 0x68317d08
mov ecx, edi
mov ebp, dword [esp + 0x84]
mov edi, dword [esp + 0x88]
test cl, cl
fcmove st(0), st(2)
fstp st(2)
fld dword [0x683ed1a4]
fld st(1)
fadd st(1)
fxch st(3)
fcomi st(3)
fstp st(3)
ja 0x6831710f
fsubrp st(1)
fcompi st(1)
jbe 0x6831756d
fldz
mov ebx, dword [esp + 0x5c]
fucomi st(1)
jp 0x68317d9c
fcompi st(1)
fstp st(0)
je 0x68318203
jmp 0x68317da0
fstp st(0)
fstp st(0)
mov esi, dword [esp + 0x80]
mov dword [esp + 0x2c], 0x10
lea ecx, [esi + 1]
lea esi, [esi]
mov edx, eax
lea eax, [eax - 1]
cmp byte [edx - 1], 0x30
je 0x68317db8
mov dword [esp + 0x5c], edx
mov dword [esp + 0x34], ecx
jmp 0x6831745a
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
lea edx, [edi + 1]
mov edi, edx
test ecx, ecx
je 0x68318036
cmp dword [ebp + 0x10], 1
jle 0x683181a6
cmp dword [esp + 0x50], 2
je 0x68318088
mov edi, esi
mov esi, edx
jmp 0x68317e67
movzx eax, byte [esp + 0x28]
mov byte [esi - 1], al
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.683194b0
mov dword [esp], ebp
cmp edi, ebx
mov dword [esp + 8], 0
cmove edi, eax
mov dword [esp + 4], 0xa
mov dword [esp + 0x18], eax
call fcn.683194b0
mov ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.683168f0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], esi
add esi, 1
add eax, 0x30
mov dword [esp + 0x28], eax
mov ebx, ecx
mov eax, dword [esp + 0x38]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.68319b10
mov ecx, esi
test eax, eax
jg 0x68317e00
mov eax, dword [esp + 0x28]
mov esi, edi
mov edi, ecx
cmp eax, 0x39
je 0x68318099
add eax, 1
mov dword [esp + 0x2c], 0x20
mov ecx, esi
mov esi, ebx
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x30]
movzx eax, byte [esp + 0x28]
mov byte [ebx], al
jmp 0x68317888
mov dword [esp + 0x9c], 0
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x40]
mov dword [esp + 0x60], eax
jmp 0x68317292
mov eax, dword [esp + 0x40]
test eax, eax
je 0x6831751e
mov esi, dword [esp + 0x7c]
test esi, esi
jle 0x68317571
fmul dword [0x683ed194]
mov dword [esp + 0x80], 0xffffffff
fld st(0)
fmul dword [0x683ed198]
fadd dword [0x683ed19c]
fstp qword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x50], eax
mov eax, edx
sub eax, 0x3400000
mov dword [esp + 0x54], eax
jmp 0x6831702a
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.68319350
lea ecx, [eax + 0xc]
mov ebx, eax
mov eax, dword [esi + 0x10]
mov dword [esp], ecx
lea edx, [eax*4 + 8]
lea eax, [esi + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.683199d0
mov ebx, eax
jmp 0x683176e7
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
add eax, 1
cmp eax, dword [esp + 0x28]
jge 0x6831735c
jmp 0x68317901
fstp st(0)
fstp st(0)
mov dword [esp + 0x34], 2
mov ebx, dword [esp + 0x5c]
xor esi, esi
mov dword [esp + 0x38], 0
jmp 0x68317432
cmp dword [esp + 0x28], 0x39
je 0x68318099
movzx eax, byte [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, esi
mov dword [esp + 0x2c], 0x20
mov esi, ebx
add eax, 1
mov byte [edx], al
jmp 0x68317888
mov ecx, esi
mov esi, ebx
jmp 0x68317a52
mov dword [esp + 0x5c], ecx
add edx, 1
mov byte [eax], dl
mov dword [esp + 0x2c], 0x20
jmp 0x6831745a
mov eax, dword [esp + 0x30]
sub edi, ebx
mov dword [esp + 0x34], 0
lea ecx, [edi + 1]
sub esi, edi
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [eax + 4]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x7c], 0xffffffff
cmp eax, esi
jg 0x68317241
jmp 0x6831727c
add dword [esp + 0x34], 1
mov edx, 0x31
mov dword [esp + 0x5c], ecx
mov byte [ebx], 0x30
jmp 0x68317fda
test eax, eax
jle 0x6831807e
mov dword [esp], ebp
mov dword [esp + 4], 1
call fcn.683199d0
mov ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.68319b10
test eax, eax
jle 0x683181e9
cmp dword [esp + 0x28], 0x39
je 0x68318099
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], 0x20
add eax, 0x31
mov dword [esp + 0x28], eax
cmp dword [ebp + 0x10], 1
jle 0x683181c2
mov ecx, esi
mov dword [esp + 0x2c], 0x10
mov esi, ebx
jmp 0x68317ea1
mov eax, dword [esp + 0x30]
mov ecx, esi
mov esi, ebx
mov ebx, dword [esp + 0x5c]
mov byte [eax], 0x39
mov eax, 0x39
jmp 0x68317a8e
mov eax, dword [esp + 0x30]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
jmp 0x683173e3
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x5c], edi
jmp 0x68317452
fstp st(0)
mov esi, dword [esp + 0x80]
fldz
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x5c], eax
add esi, 1
fucomi st(1)
mov dword [esp + 0x34], esi
jp 0x68317cac
fcompi st(1)
fstp st(0)
jne 0x68317cb0
mov dword [esp + 0x2c], 0
jmp 0x6831745a
fadd st(0)
movzx edx, byte [eax - 1]
fcomi st(1)
ja 0x683181da
fucompi st(1)
fstp st(0)
mov ebx, dword [esp + 0x5c]
jp 0x68318132
jne 0x68318132
test byte [esp + 0x18], 1
jne 0x68317148
mov dword [esp + 0x2c], 0x10
jmp 0x68317db8
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov byte [esp + 0x28], dl
call fcn.683194b0
movzx edx, byte [esp + 0x28]
mov esi, eax
test dl, dl
jne 0x683180b2
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
jmp 0x683176c7
mov ebx, dword [ebp + 0x14]
mov edx, 0x10
test ebx, ebx
cmove edx, dword [esp + 0x2c]
mov dword [esp + 0x2c], edx
jmp 0x68317ab6
movzx edx, byte [eax - 1]
mov ebx, dword [esp + 0x5c]
mov ecx, eax
jmp 0x68317130
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x68317def
test eax, eax
jg 0x6831803a
mov ecx, esi
mov esi, ebx
jmp 0x68317ea1
mov ecx, esi
mov esi, ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x6831821a
mov dword [esp + 0x2c], 0x10
jmp 0x68317ea1
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x5c]
mov ecx, eax
jmp 0x68317130
jne 0x683181f6
test byte [esp + 0x28], 1
jne 0x68318064
mov dword [esp + 0x50], 0x20
jmp 0x6831807e
mov esi, dword [esp + 0x80]
mov dword [esp + 0x2c], 0
lea ecx, [esi + 1]
jmp 0x68317db8
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
jmp 0x68317ea1
cmp dword [ebp + 0x10], 1
jle 0x68318237
mov eax, 0x10
jmp 0x68317872
cmp dword [ebp + 0x14], 0
mov edx, 0x10
cmovne eax, edx
jmp 0x68317872
mov eax, dword [esp + 0x58]
jmp 0x6831770d