Function at 0x10164030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x103215d0
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x1043900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], 0
mov edi, dword [0x1060c1e0]
mov eax, dword [0x1060c1e4]
mov dword [ebp - 0xa8], edi
sub eax, edi
je 0x10164b76
mov eax, dword [0x1060b5e0]
mov eax, dword [eax + 0xaa8]
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x101640dd
cmp byte [eax + 0x25f], 0
jne 0x101640dd
mov eax, dword fs:[0x2c]
mov ecx, dword [0x104c14e0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10611928]
cmp eax, dword [ecx + 4]
jg 0x10164b91
mov eax, dword [0x10611714]
mov ecx, dword [ebp - 0xb4]
movd xmm0, dword [ecx + eax]
mov eax, dword [0x1060b290]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x20]
jmp 0x101640e7
mov eax, dword [0x1060b290]
movss xmm0, dword [eax + 0x10]
subss xmm0, dword [edi + 0x4c]
andps xmm0, xmmword [0x1041f450]
comiss xmm0, dword [0x1041edc4]
jbe 0x1016428b
cmp byte [edi + 0x54], 0
je 0x10164274
cmp byte [edi + 0x55], 0
je 0x101641af
cmp byte [0x104b1210], 0
jne 0x10164190
mov byte [0x104b1210], 1
xor edi, edi
xor edx, edx
mov eax, edi
xor eax, dword [0x104b1240]
xor edx, dword [0x104b1244]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0xa4], eax
mov esi, dword [ebp - 0xa4]
mov ecx, edx
shld ecx, eax, 0xd
xor edx, ecx
shl eax, 0xd
xor esi, eax
mov ecx, edx
mov eax, esi
shrd eax, ecx, 7
shr ecx, 7
xor esi, eax
xor edx, ecx
mov dword [ebp - 0xa4], esi
mov ecx, esi
shld edx, ecx, 0x11
shl ecx, 0x11
xor cl, byte [edi + 0x104b1211]
xor cl, byte [ebp - 0xa4]
mov byte [edi + 0x104b1211], cl
inc edi
cmp edi, 0x2d
jb 0x10164126
push ecx
push 0x104b123d
push 0x104b1211
lea ecx, [ebp - 0x28]
call fcn.1001a620
mov dword [ebp - 4], 3
jmp 0x10164249
cmp byte [0x104b1150], 0
jne 0x1016422f
mov byte [0x104b1150], 1
xor edi, edi
xor edx, edx
mov eax, edi
xor eax, dword [0x104b1170]
xor edx, dword [0x104b1174]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0xa8], eax
mov ecx, edx
shld ecx, eax, 0xd
xor edx, ecx
shl eax, 0xd
xor dword [ebp - 0xa8], eax
mov ecx, edx
mov eax, dword [ebp - 0xa8]
shrd eax, ecx, 7
xor dword [ebp - 0xa8], eax
shr ecx, 7
xor edx, ecx
mov ecx, dword [ebp - 0xa8]
shld edx, ecx, 0x11
shl ecx, 0x11
xor cl, byte [ebp - 0xa8]
xor cl, byte [edi + 0x104b1151]
mov byte [edi + 0x104b1151], cl
inc edi
cmp edi, 0x18
jb 0x101641c1
push ecx
push 0x104b1168
push 0x104b1151
lea ecx, [ebp - 0x28]
call fcn.1001a620
mov dword [ebp - 4], 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10019eb0
push 0xff0000ff
call fcn.100557a0
add esp, 0x1c
lea ecx, [ebp - 0x28]
call fcn.10019dd0
push dword [0x1060c1e0]
lea eax, [ebp - 0xb4]
push eax
call fcn.100697f0
jmp 0x10164b76
movss xmm0, dword [edi + 0x50]
ucomiss xmm0, dword [0x1041f198]
lahf
test ah, 0x44
jnp 0x10164b76
cmp dword [edi + 0x5c], 0xffffffff
jne 0x10164b76
cmp byte [edi + 0x54], 0
je 0x10164b76
cmp byte [edi + 0x55], 0
je 0x10164b76
cmp dword [edi + 0x80], 0
lea esi, [edi + 0x80]
mov dword [ebp - 0xb4], esi
je 0x10164b76
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 5
mov ecx, dword [edi]
push eax
call fcn.100ca9f0
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 6
cmp byte [0x104b11a0], 0
jne 0x101643a0
mov byte [0x104b11a0], 1
xor edi, edi
xor edx, edx
mov eax, edi
xor eax, dword [0x104b11b8]
xor edx, dword [0x104b11bc]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0xa4], eax
mov ecx, edx
shld ecx, eax, 0xd
xor edx, ecx
shl eax, 0xd
xor dword [ebp - 0xa4], eax
mov ecx, edx
mov eax, dword [ebp - 0xa4]
shrd eax, ecx, 7
xor dword [ebp - 0xa4], eax
shr ecx, 7
xor edx, ecx
mov ecx, dword [ebp - 0xa4]
shld edx, ecx, 0x11
shl ecx, 0x11
xor cl, byte [ebp - 0xa4]
xor cl, byte [edi + 0x104b11a1]
mov byte [edi + 0x104b11a1], cl
inc edi
cmp edi, 0x10
jb 0x10164326
mov edi, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xb4]
push ecx
push 0x104b11b0
push 0x104b11a1
lea ecx, [ebp - 0x28]
call fcn.1001a620
push dword [ebp - 0xbc]
mov byte [ebp - 4], 7
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0xa0]
cmovae edx, dword [ebp - 0x28]
call fcn.1006cf00
add esp, 4
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x101643e5
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.1002bf00
lea ecx, [ebp - 0xa0]
call fcn.10019dd0
lea ecx, [ebp - 0x28]
call fcn.10019dd0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.10019dd0
mov ecx, dword [esi]
xor al, al
mov byte [ebp - 0xaa], 0
mov byte [ebp - 0xa9], al
mov byte [ebp - 0xac], al
mov byte [ebp - 0xab], al
test ecx, ecx
je 0x10164619
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 0x20]
call eax
mov ecx, dword [0x1060b2a4]
push eax
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x80]
call ecx
test eax, eax
je 0x10164619
movq xmm0, qword [edi + 0x515c]
sub esp, 0xc
mov eax, dword [edi + 0x5164]
mov ecx, esp
sub esp, 0xc
movq qword [ecx], xmm0
movq xmm0, qword [edi + 0x5168]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [edi + 0x5170]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x1c]
call fcn.10127830
movss xmm1, dword [ebp - 0x18]
add esp, 0x18
movss xmm2, dword [ebp - 0x1c]
mulss xmm1, dword [0x1041ec88]
mulss xmm2, dword [0x1041ec88]
movaps xmm0, xmm1
movaps xmm1, xmm2
call fcn.10311bc0
movaps xmm3, xmm0
mov edx, dword [edi + 0x70]
movss xmm0, dword [0x1041f0e4]
lea eax, [edi + 0xb0]
movaps xmm5, xmm3
movaps xmm1, xmm3
shufps xmm5, xmm3, 0xe
movaps xmm4, xmm5
shufps xmm1, xmm3, 1
shufps xmm4, xmm5, 1
movaps xmm2, xmm4
mulss xmm5, xmm0
push eax
mulss xmm2, xmm1
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
mulss xmm4, xmm3
mulss xmm2, xmm0
mulss xmm4, xmm0
movss xmm0, dword [edi + 0x5164]
addss xmm2, dword [edi + 0x515c]
addss xmm4, dword [edi + 0x5160]
subss xmm0, xmm5
unpcklps xmm2, xmm4
movq qword [ecx], xmm2
movss dword [ebp - 0x14], xmm0
mov eax, dword [ebp - 0x14]
movq xmm0, qword [edi + 0x5168]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [edi + 0x5170]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, esi
call fcn.10174280
add esp, 0x1c
test al, al
je 0x10164566
mov byte [ebp - 0xaa], 1
jmp 0x10164619
mov eax, dword [esi]
test eax, eax
je 0x10164612
cmp byte [eax + 0x25f], 0
jne 0x10164612
movss xmm4, dword [edi + 0x5168]
movss xmm5, dword [edi + 0x516c]
movaps xmm1, xmm4
subss xmm1, dword [edi + 0x515c]
subss xmm4, dword [edi + 0x64]
movss xmm3, dword [edi + 0x5170]
movaps xmm2, xmm5
subss xmm2, dword [edi + 0x5160]
subss xmm5, dword [edi + 0x68]
movaps xmm0, xmm3
mulss xmm1, xmm1
subss xmm0, dword [edi + 0x5164]
subss xmm3, dword [edi + 0x6c]
mulss xmm2, xmm2
mulss xmm5, xmm5
mulss xmm4, xmm4
addss xmm2, xmm1
mulss xmm0, xmm0
xorps xmm1, xmm1
addss xmm5, xmm4
mulss xmm3, xmm3
addss xmm2, xmm0
xorps xmm0, xmm0
addss xmm5, xmm3
sqrtss xmm1, xmm2
sqrtss xmm0, xmm5
comiss xmm0, xmm1
jbe 0x10164609
mov byte [ebp - 0xab], 1
jmp 0x10164619
mov byte [ebp - 0xa9], 1
jmp 0x10164619
mov byte [ebp - 0xac], 1
mov ecx, dword [0x1060b5e0]
lea ecx, [ecx + 0xa9c]
call fcn.10045a40
mov ecx, dword [edi]
mov esi, eax
lea eax, [ebp - 0x88]
push eax
call fcn.100ca9f0
push eax
mov ecx, esi
call fcn.10019e20
lea ecx, [ebp - 0x88]
call fcn.10019dd0
mov eax, dword [edi + 0x5174]
lea ecx, [esi + 0x1c]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x70]
mov dword [esi + 0x18], eax
lea eax, [edi + 0x1c]
push eax
call fcn.10032580
cmp byte [ebp - 0xaa], 0
mov al, byte [ebp - 0xa9]
mov byte [esi + 0x39], al
je 0x1016480c
cmp byte [edi + 0x5124], 0
jne 0x1016476a
cmp byte [0x104b11d0], 0
jne 0x10164715
mov byte [0x104b11d0], 1
xor edi, edi
xor edx, edx
mov eax, edi
xor eax, dword [0x104b11e8]
xor edx, dword [0x104b11ec]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0xa4], eax
mov ecx, edx
shld ecx, eax, 0xd
xor edx, ecx
shl eax, 0xd
xor dword [ebp - 0xa4], eax
mov ecx, edx
mov eax, dword [ebp - 0xa4]
shrd eax, ecx, 7
xor dword [ebp - 0xa4], eax
shr ecx, 7
xor edx, ecx
mov ecx, dword [ebp - 0xa4]
shld edx, ecx, 0x11
shl ecx, 0x11
xor cl, byte [ebp - 0xa4]
xor cl, byte [edi + str._b_r_f]
mov byte [edi + str._b_r_f], cl
inc edi
cmp edi, 0x10
jb 0x101646a1
mov edi, dword [ebp - 0xa8]
push ecx
push 0x104b11e0
push str._b_r_f
lea ecx, [ebp - 0x28]
call fcn.1001a620
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x70]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1006be30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.10019dd0
mov ecx, dword [edi]
mov esi, dword [0x1060b5e0]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
inc dword [esi + eax*4 + 0x7744]
jmp 0x10164adb
cmp byte [0x104b12a0], 0
jne 0x101647f0
mov byte [0x104b12a0], 1
xor edi, edi
xor edx, edx
mov eax, edi
xor eax, dword [0x104b12b8]
xor edx, dword [0x104b12bc]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0xa4], eax
mov esi, dword [ebp - 0xa4]
mov ecx, edx
shld ecx, eax, 0xd
xor edx, ecx
shl eax, 0xd
xor esi, eax
mov ecx, edx
mov eax, esi
shrd eax, ecx, 7
shr ecx, 7
xor esi, eax
xor edx, ecx
mov dword [ebp - 0xa4], esi
mov ecx, esi
shld edx, ecx, 0x11
shl ecx, 0x11
xor cl, byte [edi + 0x104b12a1]
xor cl, byte [ebp - 0xa4]
mov byte [edi + 0x104b12a1], cl
inc edi
cmp edi, 0x17
jb 0x10164780
mov edi, dword [ebp - 0xa8]
push ecx
push 0x104b12b7
push 0x104b12a1
lea ecx, [ebp - 0x28]
call fcn.1001a620
mov byte [ebp - 4], 0xa
jmp 0x10164abb
test al, al
je 0x101648c0
cmp byte [0x104b1340], 0
jne 0x101648a4
mov byte [0x104b1340], 1
xor edi, edi
nop word [eax + eax]
xor edx, edx
mov eax, edi
xor eax, dword [0x104b1358]
xor edx, dword [0x104b135c]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0xa4], eax
mov ecx, edx
shld ecx, eax, 0xd
xor edx, ecx
shl eax, 0xd
xor dword [ebp - 0xa4], eax
mov ecx, edx
mov eax, dword [ebp - 0xa4]
shrd eax, ecx, 7
xor dword [ebp - 0xa4], eax
shr ecx, 7
xor edx, ecx
mov ecx, dword [ebp - 0xa4]
shld edx, ecx, 0x11
shl ecx, 0x11
xor cl, byte [ebp - 0xa4]
xor cl, byte [edi + 0x104b1341]
mov byte [edi + 0x104b1341], cl
inc edi
cmp edi, 0x10
jb 0x10164830
mov edi, dword [ebp - 0xa8]
push ecx
push 0x104b1350
push 0x104b1341
lea ecx, [ebp - 0x28]
call fcn.1001a620
mov byte [ebp - 4], 0xb
jmp 0x10164abb
cmp byte [ebp - 0xab], 0
je 0x1016496f
cmp byte [0x104b1260], 0
jne 0x10164953
mov byte [0x104b1260], 1
xor edi, edi
xor edx, edx
mov eax, edi
xor eax, dword [0x104b1278]
xor edx, dword [0x104b127c]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0xa4], eax
mov esi, dword [ebp - 0xa4]
mov ecx, edx
shld ecx, eax, 0xd
xor edx, ecx
shl eax, 0xd
xor esi, eax
mov ecx, edx
mov eax, esi
shrd eax, ecx, 7
shr ecx, 7
xor esi, eax
xor edx, ecx
mov dword [ebp - 0xa4], esi
mov ecx, esi
shld edx, ecx, 0x11
shl ecx, 0x11
xor cl, byte [edi + 0x104b1261]
xor cl, byte [ebp - 0xa4]
mov byte [edi + 0x104b1261], cl
inc edi
cmp edi, 0x13
jb 0x101648e3
mov edi, dword [ebp - 0xa8]
push ecx
push 0x104b1273
push 0x104b1261
lea ecx, [ebp - 0x28]
call fcn.1001a620
mov byte [ebp - 4], 0xc
jmp 0x10164abb
cmp byte [ebp - 0xac], 0
je 0x10164a1e
cmp byte [0x104b1130], 0
jne 0x10164a02
mov byte [0x104b1130], 1
xor edi, edi
xor edx, edx
mov eax, edi
xor eax, dword [0x104b1148]
xor edx, dword [0x104b114c]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0xa4], eax
mov esi, dword [ebp - 0xa4]
mov ecx, edx
shld ecx, eax, 0xd
xor edx, ecx
shl eax, 0xd
xor esi, eax
mov ecx, edx
mov eax, esi
shrd eax, ecx, 7
shr ecx, 7
xor esi, eax
xor edx, ecx
mov dword [ebp - 0xa4], esi
mov ecx, esi
shld edx, ecx, 0x11
shl ecx, 0x11
xor cl, byte [edi + 0x104b1131]
xor cl, byte [ebp - 0xa4]
mov byte [edi + 0x104b1131], cl
inc edi
cmp edi, 0x15
jb 0x10164992
mov edi, dword [ebp - 0xa8]
push ecx
push 0x104b1145
push 0x104b1131
lea ecx, [ebp - 0x28]
call fcn.1001a620
mov byte [ebp - 4], 0xd
jmp 0x10164abb
cmp byte [0x104b13c0], 0
jne 0x10164aa4
mov byte [0x104b13c0], 1
xor edi, edi
xor edx, edx
mov eax, edi
xor eax, dword [0x104b13d0]
xor edx, dword [0x104b13d4]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0xa4], eax
mov esi, dword [ebp - 0xa4]
mov ecx, edx
shld ecx, eax, 0xd
xor edx, ecx
shl eax, 0xd
xor esi, eax
mov ecx, edx
mov eax, esi
shrd eax, ecx, 7
shr ecx, 7
xor esi, eax
xor edx, ecx
mov dword [ebp - 0xa4], esi
mov ecx, esi
shld edx, ecx, 0x11
shl ecx, 0x11
xor cl, byte [edi + 0x104b13c1]
xor cl, byte [ebp - 0xa4]
mov byte [edi + 0x104b13c1], cl
inc edi
cmp edi, 0xb
jb 0x10164a34
mov edi, dword [ebp - 0xa8]
push ecx
push 0x104b13cb
push 0x104b13c1
lea ecx, [ebp - 0x28]
call fcn.1001a620
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x70]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1006be30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.10019dd0
lea eax, [ebp - 0x88]
mov ecx, edi
push eax
call fcn.10179cf0
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x10164af8
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.1002bf00
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.10019dd0
mov esi, dword [0x1060f4fa]
lea eax, [ebp - 0x70]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.1002c0b0
push esi
call fcn.100557a0
add esp, 0x1c
lea eax, [ebp - 0xb4]
push dword [0x1060c1e0]
push eax
call fcn.100697f0
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0x10
jb 0x10164b76
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10164b6c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10164b6c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102bb95a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102bb91c
mov esp, ebp
pop ebp
ret
push 0x10611928
call fcn.102bba07
add esp, 4
cmp dword [0x10611928], 0xffffffff
jne 0x101640be
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
push 0xd
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0xa4], 1
call fcn.1001a120
mov esi, 0x103f6288
jmp 0x10164be6
mov al, byte [esi]
lea ecx, [ebp - 0x40]
xor al, 0xa5
mov byte [ebp - 0xb0], al
push dword [ebp - 0xb0]
call fcn.1001a280
add esi, 2
cmp esi, 0x103f629e
jne 0x10164be6
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x30]
cmovae eax, edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xb0], eax
test esi, esi
je 0x10164cf2
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x10164cf2
sub edx, dword [ebp - 0xb0]
cmp edx, 0xffffffff
je 0x10164cf2
jmp 0x10164c54
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
setae cl
add edx, eax
lea eax, [ebp - 0x40]
test cl, cl
je 0x10164c82
sub edx, edi
mov eax, esi
sub eax, edx
mov edi, 1
cmp eax, edi
cmovb edi, eax
mov eax, dword [ebp - 0xa4]
jmp 0x10164c97
sub edx, eax
mov edi, 1
mov eax, esi
sub eax, edx
cmp eax, edi
cmovb edi, eax
lea eax, [ebp - 0x40]
jmp 0x10164c97
lea ecx, [eax + edx]
sub esi, edi
mov eax, esi
sub eax, edx
inc eax
push eax
lea eax, [ecx + edi]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x40]
add esp, 0xc
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0xa4], edi
cmovae eax, edi
mov dword [ebp - 0xb0], eax
test esi, esi
je 0x10164cf2
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x10164cf2
sub edx, dword [ebp - 0xb0]
cmp edx, 0xffffffff
jne 0x10164c54
jmp 0x10164cf2
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0
mov esi, 0x103f6844
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov dword [ebp - 0xa4], 3
jmp 0x10164d30
mov al, byte [esi]
lea ecx, [ebp - 0x58]
xor al, 0xa5
mov byte [ebp - 0xb0], al
push dword [ebp - 0xb0]
call fcn.1001a280
add esi, 2
cmp esi, 0x103f685e
jne 0x10164d30
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x48]
cmovae eax, edi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xb8], eax
test esi, esi
je 0x10164e3e
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x10164e3e
sub edx, dword [ebp - 0xb8]
cmp edx, 0xffffffff
je 0x10164e3e
jmp 0x10164da0
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, edi
setae cl
add edx, eax
lea eax, [ebp - 0x58]
test cl, cl
je 0x10164dce
sub edx, edi
mov eax, esi
sub eax, edx
mov edi, 1
cmp eax, edi
cmovb edi, eax
mov eax, dword [ebp - 0xb0]
jmp 0x10164de3
sub edx, eax
mov edi, 1
mov eax, esi
sub eax, edx
cmp eax, edi
cmovb edi, eax
lea eax, [ebp - 0x58]
jmp 0x10164de3
lea ecx, [eax + edx]
sub esi, edi
mov eax, esi
sub eax, edx
inc eax
push eax
lea eax, [ecx + edi]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov edi, dword [ebp - 0x58]
lea eax, [ebp - 0x58]
add esp, 0xc
mov dword [ebp - 0x48], esi
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0xb0], edi
cmovae eax, edi
mov dword [ebp - 0xb8], eax
test esi, esi
je 0x10164e3e
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x10164e3e
sub edx, dword [ebp - 0xb8]
cmp edx, 0xffffffff
jne 0x10164da0
jmp 0x10164e3e
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push 0
push dword [ebp - 0xbc]
cmovae eax, edi
push eax
call fcn.10171b70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
mov dword [0x10611714], eax
cmp ecx, 0x10
jb 0x10164e93
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10164e87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10164ed1
jmp 0x10164e87
push ecx
push edx
call fcn.102bb95a
add esp, 8
jmp 0x10164e93
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0x10
jb 0x10164ee3
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10164ed7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10164ed7
jmp 0x10164ed1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102bb95a
add esp, 8
jmp 0x10164ee3
push 0x10611928
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
call fcn.102bb9b6
mov edi, dword [ebp - 0xa8]
add esp, 4
jmp 0x101640be