Function at 0x10005450
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x1002079d
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x100280f0]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100280f0]
xor eax, esp
push eax
lea eax, [esp + 0x43c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44c]
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x2e]
push ebx
push ecx
mov dword [esp + 0x30], eax
mov word [esp + 0x34], bx
call fcn.1000f430
mov eax, dword [0x100323f0]
add esp, 0xc
push 0x104
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x100054d1
xor al, al
jmp 0x100058bf
mov ebp, dword [0x10031744]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x28]
shr ecx, 0x10
mov dword [esp + 0x18], ebp
jne 0x100055c2
lea edx, [esp + 0x28]
movzx ecx, dx
lea edx, [esp + 0x18]
call fcn.10007fe0
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x444], ebx
xor esi, esi
jmp 0x10005510
push 0x5c
push ebp
call fcn.1000e49c
add esp, 8
cmp eax, ebx
je 0x10005544
sub eax, ebp
sar eax, 1
js 0x10005544
mov ecx, dword [ebp - 8]
cmp eax, ecx
jge 0x10005544
sub ecx, eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.10007d20
mov ebp, dword [esp + 0x18]
add esi, 1
cmp esi, 1
jl 0x10005510
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jne 0x100057c3
push 0x206
lea edx, [esp + 0x236]
push 0
push edx
mov word [esp + 0x23c], 0
call fcn.1000f430
add esp, 0xc
lea eax, [esp + 0x230]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x10005747
mov ecx, dword [0x10031744]
mov edx, str.yxq_nethelper
shr edx, 0x10
mov dword [esp + 0x14], ecx
jne 0x1000560b
mov eax, str.yxq_nethelper
movzx ecx, ax
lea edx, [esp + 0x14]
call fcn.10007fe0
jmp 0x10005647
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x10005502
mov ecx, esi
lea edx, [esp + 0x18]
call fcn.10007be0
test eax, eax
je 0x100054fe
mov ebp, dword [esp + 0x18]
lea eax, [esi + esi]
push eax
lea ecx, [esp + 0x2c]
push ecx
add eax, 2
push eax
push ebp
call fcn.1000ded5
push eax
call fcn.10007c80
add esp, 0x14
jmp 0x10005502
push str.yxq_nethelper
call edi
mov esi, eax
test esi, esi
je 0x10005647
mov ecx, esi
lea edx, [esp + 0x14]
call fcn.10007be0
test eax, eax
je 0x10005647
mov ecx, dword [esp + 0x14]
lea eax, [esi + esi]
push eax
push str.yxq_nethelper
add eax, 2
push eax
push ecx
call fcn.1000ded5
push eax
call fcn.10007c80
add esp, 0x14
mov byte [esp + 0x444], 1
mov edx, dword [0x10031744]
lea eax, [esp + 0x230]
shr eax, 0x10
mov dword [esp + 0x1c], edx
jne 0x1000567a
lea ecx, [esp + 0x230]
movzx ecx, cx
lea edx, [esp + 0x1c]
call fcn.10007fe0
jmp 0x100056bc
lea edx, [esp + 0x230]
push edx
call edi
mov esi, eax
test esi, esi
je 0x100056bc
mov ecx, esi
lea edx, [esp + 0x1c]
call fcn.10007be0
test eax, eax
je 0x100056bc
mov edx, dword [esp + 0x1c]
lea eax, [esi + esi]
push eax
lea ecx, [esp + 0x234]
push ecx
add eax, 2
push eax
push edx
call fcn.1000ded5
push eax
call fcn.10007c80
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
mov byte [esp + 0x44c], 2
call fcn.10007e10
mov edi, eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x444], 3
call fcn.10007e80
mov eax, dword [esp + 0x20]
lea edx, [eax - 0xc]
cmp edx, 0x10031734
je 0x10005713
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x10005713
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.1000e356
add esp, 4
mov esi, dword [esp + 0x1c]
lea ecx, [esi - 0xc]
cmp ecx, 0x10031734
je 0x10005735
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x10005735
push esi
call fcn.1000e356
add esp, 4
mov esi, dword [esp + 0x14]
lea edx, [esi - 0xc]
cmp edx, 0x10031734
jmp 0x1000588a
mov eax, dword [0x10031744]
mov ecx, str.C:Program_Filesyxq_nethelper
shr ecx, 0x10
mov dword [esp + 0x14], eax
jne 0x1000576d
mov edx, str.C:Program_Filesyxq_nethelper
movzx ecx, dx
lea edx, [esp + 0x14]
call fcn.10007fe0
jmp 0x100057a9
push str.C:Program_Filesyxq_nethelper
call edi
mov esi, eax
test esi, esi
je 0x100057a9
mov ecx, esi
lea edx, [esp + 0x14]
call fcn.10007be0
test eax, eax
je 0x100057a9
lea eax, [esi + esi]
push eax
add eax, 2
push str.C:Program_Filesyxq_nethelper
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.1000ded5
push eax
call fcn.10007c80
add esp, 0x14
mov eax, dword [esp + 0x24]
lea edi, [esp + 0x14]
mov byte [esp + 0x444], 4
call fcn.10007e80
jmp 0x1000587d
mov edx, dword [0x10031744]
mov eax, str.yxq_nethelper
shr eax, 0x10
mov dword [esp + 0x14], edx
jne 0x100057ea
mov ecx, str.yxq_nethelper
movzx ecx, cx
lea edx, [esp + 0x14]
call fcn.10007fe0
jmp 0x10005826
push str.yxq_nethelper
call edi
mov esi, eax
test esi, esi
je 0x10005826
mov ecx, esi
lea edx, [esp + 0x14]
call fcn.10007be0
test eax, eax
je 0x10005826
mov edx, dword [esp + 0x14]
lea eax, [esi + esi]
push eax
push str.yxq_nethelper
add eax, 2
push eax
push edx
call fcn.1000ded5
push eax
call fcn.10007c80
add esp, 0x14
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
mov byte [esp + 0x44c], 5
call fcn.10007e10
mov edi, eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x444], 6
call fcn.10007e80
mov eax, dword [esp + 0x20]
lea edx, [eax - 0xc]
cmp edx, 0x10031734
je 0x1000587d
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x1000587d
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.1000e356
add esp, 4
mov esi, dword [esp + 0x14]
lea ecx, [esi - 0xc]
cmp ecx, 0x10031734
je 0x1000589f
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x1000589f
push esi
call fcn.1000e356
add esp, 4
lea edx, [ebp - 0xc]
cmp edx, 0x10031734
je 0x100058bd
lea esi, [ebp - 0xc]
push esi
call ebx
test eax, eax
jg 0x100058bd
push esi
call fcn.1000e356
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.1000dec6
add esp, 0x434
ret 4