Function at 0x100299d0
Capabilities:
Check if file exists
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100406d6
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x10050008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub dword [ebp + 0xc], 1
mov esi, dword [ebp + 8]
jne 0x10029cef
sub esp, 8
call fcn.10029990
add esp, 8
test al, al
je 0x10029cef
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._UserProfile_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x16
xor eax, eax
mov dword [ebp - 0x230], 0
push str.AppDataLocalDaXiang
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.10008970
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
xor eax, eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x268], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10029aa3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x278]
call fcn.10008970
push 1
push 0x1004bc48
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 1
call fcn.10029560
mov dword [ebp - 0x260], 0
xor ecx, ecx
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x260], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x250], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x260]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.10029560
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x248], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x238], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x10029bb7
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10029bad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10029d10
push edx
push ecx
call fcn.10029e89
add esp, 8
mov edx, dword [ebp - 0x264]
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
cmp edx, 8
jb 0x10029c14
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10029c0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10029d10
push edx
push ecx
call fcn.10029e89
add esp, 8
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10029c56
push 0x10052270
push 0
push esi
push 0x10029980
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [0x10052270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x10029c96
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10029c8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10029d15
push edx
push ecx
call fcn.10029e89
add esp, 8
mov edx, dword [ebp - 0x21c]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp edx, 8
jb 0x10029cef
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10029ce5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10029d15
push edx
push ecx
call fcn.10029e89
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10029d1b
mov esp, ebp
pop ebp
ret 0xc
call fcn.10030588
call fcn.10030588
int3