Function at 0x401450
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1118
call fcn.00407a90
mov eax, dword [0x40c020]
xor eax, esp
mov dword [esp + 0x1114], eax
mov eax, dword [esp + 0x111c]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x3ff
lea ecx, [esp + 0x925]
push ebx
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x92c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x525]
push ebx
push edx
mov byte [esp + 0x52c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea eax, [esp + 0x125]
push ebx
push eax
mov byte [esp + 0x12c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0xd25]
push ebx
push ecx
mov byte [esp + 0xd2c], 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 0x4015d2
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.0x401532.101
movsx ecx, byte [ecx + 1]
add ecx, 0xffffff9d
cmp ecx, 0xb
ja case.0x401532.101
movzx ecx, byte [ecx + 0x401798]
jmp dword [ecx*4 + 0x401784]
mov edx, dword [eax + 4]
add edi, 1
add eax, 4
lea esi, [esp + 0x120]
lea esp, [esp]
mov cl, byte [edx]
mov byte [esi], cl
add edx, 1
add esi, 1
cmp cl, bl
jne 0x401550
jmp case.0x401532.101
mov edx, dword [eax + 4]
add edi, 1
add eax, 4
lea esi, [esp + 0x920]
mov cl, byte [edx]
mov byte [esi], cl
add edx, 1
add esi, 1
cmp cl, bl
jne 0x401570
jmp case.0x401532.101
mov edx, dword [eax + 4]
add edi, 1
add eax, 4
lea esi, [esp + 0x520]
mov cl, byte [edx]
mov byte [esi], cl
add edx, 1
add esi, 1
cmp cl, bl
jne 0x401590
jmp case.0x401532.101
mov edx, dword [eax + 4]
add edi, 1
add eax, 4
lea esi, [esp + 0xd20]
mov cl, byte [edx]
mov byte [esi], cl
add edx, 1
add esi, 1
cmp cl, bl
jne 0x4015b0
mov edx, dword [ebp]
add edi, 1
sub edx, 1
add eax, 4
cmp edi, edx
jl 0x401510
lea eax, [esp + 0xd20]
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 4
cmp byte [esp + 0x120], bl
mov ebp, eax
jne 0x401658
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 + 0x520]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str._sQQPet_s
mov eax, 0x400
lea edi, [esp + 0x12c]
call fcn.00401050
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, edi
push edx
push str._Run_
call fcn.00401fa0
add esp, 8
cmp byte [esp + 0x120], bl
je 0x40166e
cmp byte [esp + 0x920], bl
je 0x40166e
cmp byte [esp + 0x520], bl
jne 0x4016ef
mov dword [esp + 0x10], 1
xor esi, esi
cmp dword [esp + 0x10], ebx
jne 0x401686
mov dword [esp + 0x10], 5
mov edi, dword [esp + 0x10]
push edi
lea eax, [esp + 0x524]
push eax
lea ecx, [esp + 0x928]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x12c]
push edx
push esi
push str._Run__nResult:_d_path:_s_cnName:_s_name:_s_nErrcode:_d
call fcn.00401fa0
add esp, 0x18
cmp ebp, ebx
je 0x4016d2
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4016d2
push edi
push esi
push 0x7e9
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x1124]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004070e8
add esp, 0x1118
ret 4
lea edx, [esp + 0x520]
lea ecx, [esp + 0x120]
call fcn.00401a70
test eax, eax
jne 0x401713
mov dword [esp + 0x10], 2
jmp 0x401676
lea edi, [esp + 0x120]
call fcn.00401920
test eax, eax
jne 0x401730
mov dword [esp + 0x10], 3
jmp 0x401676
lea eax, [esp + 0x520]
push eax
lea ecx, [esp + 0x124]
push ecx
call fcn.00401b40
test eax, eax
jne 0x401756
mov dword [esp + 0x10], 4
jmp 0x401676
lea edx, [esp + 0x520]
push edx
lea edx, [esp + 0x924]
lea ecx, [esp + 0x124]
call fcn.004017b0
test eax, eax
je 0x401676
mov esi, 1
jmp 0x401686