Function at 0x401750
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1218
call fcn.00407f10
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0x1214], eax
mov eax, dword [esp + 0x121c]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x3ff
lea ecx, [esp + 0xa25]
push ebx
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xa2c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x625]
push ebx
push edx
mov byte [esp + 0x62c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea eax, [esp + 0x225]
push ebx
push eax
mov byte [esp + 0x22c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0xe25]
push ebx
push ecx
mov byte [esp + 0xe2c], bl
call sub.MSVCR80.dll_memset
mov ebp, dword [sym.imp.MSVCR80.dll___argc]
mov edx, dword [ebp]
sub edx, 1
add esp, 0xc
xor edi, edi
test edx, edx
jle 0x4018d2
mov eax, dword [sym.imp.MSVCR80.dll___argv]
mov eax, dword [eax]
mov edi, edi
mov ecx, dword [eax]
cmp byte [ecx], 0x2f
jne case.0x401832.101
movsx ecx, byte [ecx + 1]
add ecx, 0xffffff9d
cmp ecx, 0xb
ja case.0x401832.101
movzx ecx, byte [ecx + 0x401adc]
jmp dword [ecx*4 + 0x401ac8]
mov edx, dword [eax + 4]
add edi, 1
add eax, 4
lea esi, [esp + 0x220]
lea esp, [esp]
mov cl, byte [edx]
mov byte [esi], cl
add edx, 1
add esi, 1
cmp cl, bl
jne 0x401850
jmp case.0x401832.101
mov edx, dword [eax + 4]
add edi, 1
add eax, 4
lea esi, [esp + 0xa20]
mov cl, byte [edx]
mov byte [esi], cl
add edx, 1
add esi, 1
cmp cl, bl
jne 0x401870
jmp case.0x401832.101
mov edx, dword [eax + 4]
add edi, 1
add eax, 4
lea esi, [esp + 0x620]
mov cl, byte [edx]
mov byte [esi], cl
add edx, 1
add esi, 1
cmp cl, bl
jne 0x401890
jmp case.0x401832.101
mov edx, dword [eax + 4]
add edi, 1
add eax, 4
lea esi, [esp + 0xe20]
mov cl, byte [edx]
mov byte [esi], cl
add edx, 1
add esi, 1
cmp cl, bl
jne 0x4018b0
mov edx, dword [ebp]
add edi, 1
sub edx, 1
add eax, 4
cmp edi, edx
jl 0x401810
lea eax, [esp + 0xe20]
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 4
cmp byte [esp + 0x220], bl
mov ebp, eax
jne 0x401958
push 0x103
lea ecx, [esp + 0x1d]
push ebx
push ecx
mov byte [esp + 0x24], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x23
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x620]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str._sQQPet_s
mov eax, 0x400
lea edi, [esp + 0x22c]
call fcn.00401050
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, edi
push edx
push str._Run_
call fcn.00402420
add esp, 8
cmp byte [esp + 0x220], bl
je 0x40196a
cmp byte [esp + 0xa20], bl
je 0x40196a
cmp byte [esp + 0x620], bl
jne 0x40198b
mov dword [esp + 0x10], 1
xor esi, esi
cmp dword [esp + 0x10], ebx
jne 0x401a5d
mov dword [esp + 0x10], 5
jmp 0x401a5d
lea edx, [esp + 0x620]
lea ecx, [esp + 0x220]
call fcn.00401db0
test eax, eax
jne 0x4019ac
mov dword [esp + 0x10], 2
jmp 0x401972
lea edi, [esp + 0x220]
call fcn.00401c60
test eax, eax
jne 0x4019c6
mov dword [esp + 0x10], 3
jmp 0x401972
lea eax, [esp + 0x620]
push eax
lea ecx, [esp + 0x224]
push ecx
call fcn.00401e80
test eax, eax
jne 0x4019e9
mov dword [esp + 0x10], 4
jmp 0x401972
lea edx, [esp + 0x620]
push edx
lea edx, [esp + 0xa24]
lea ecx, [esp + 0x224]
call fcn.00401af0
test eax, eax
je 0x401972
push 0x207
lea eax, [esp + 0x1d]
push ebx
push eax
mov esi, 1
mov byte [esp + 0x24], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x620]
push ecx
lea edx, [esp + 0x224]
push edx
push str._s_s.exe
mov eax, 0x208
lea edi, [esp + 0x24]
call fcn.00401050
add esp, 0xc
lea eax, [esp + 0xa20]
push eax
mov eax, edi
call fcn.004021f0
mov edi, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x624]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xa28]
push edx
lea eax, [esp + 0x22c]
push eax
push esi
push str._Run__nResult:_d_path:_s_cnName:_s_name:_s_nErrcode:_d
call fcn.00402420
add esp, 0x18
cmp ebp, ebx
je 0x401aa9
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401aa9
push edi
push esi
push 0x7e9
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x1224]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407568
add esp, 0x1218
ret 4