Function at 0x40ba70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x428a88
mov eax, dword fs:[0]
push eax
sub esp, 0x524
mov eax, dword [0x43bca0]
xor eax, esp
mov dword [esp + 0x520], eax
push ebx
push esi
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0x530]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
test byte [0x43cf0c], 1
jne 0x40bad7
or dword [0x43cf0c], 1
mov ecx, 0x43cf08
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x42b940
call fcn.00425f13
add esp, 4
mov eax, dword [0x43cf08]
cmp dword [eax - 0xc], ebx
jne 0x40bd52
push 0x208
lea ecx, [esp + 0x328]
push ebx
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea edx, [esp + 0x32c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40bd19
lea eax, [esp + 0x10]
push eax
call fcn.0040b4c0
add esp, 4
push 1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x540], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_5558]
push 0x42eef4
mov ecx, eax
mov byte [esp + 0x53c], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_1472]
test eax, eax
lea ecx, [esp + 0x14]
setne byte [esp + 0xf]
mov byte [esp + 0x538], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp byte [esp + 0xf], bl
je 0x40bba9
push 0x42eef4
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0040be10
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x53c], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x14]
mov byte [esp + 0x538], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0x208
lea ecx, [esp + 0x120]
push ebx
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea edx, [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov esi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
cmp esi, ebx
je 0x40bc84
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push 1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_5558]
push 0x42eef4
mov ecx, eax
mov byte [esp + 0x53c], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_1472]
test eax, eax
lea ecx, [esp + 0x14]
setne byte [esp + 0xf]
mov byte [esp + 0x538], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp byte [esp + 0xf], bl
je 0x40bc84
push 0x42eef4
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0040be10
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x53c], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x14]
mov byte [esp + 0x538], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0x103
lea ecx, [esp + 0x1d]
push ebx
push ecx
mov byte [esp + 0x24], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_4074]
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
push eax
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push eax
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.0042082c
add esp, 0x10
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40bce0
sub eax, edx
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.0040beb0
push eax
lea edx, [esp + 0x334]
push edx
push str._sTencentQQDownload_u_
push 0x43cf08
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x1c
lea ecx, [esp + 0x10]
jmp 0x40bd41
lea eax, [esp + 0x14]
push eax
call fcn.0040bd90
add esp, 4
push eax
mov ecx, 0x43cf08
mov dword [esp + 0x53c], 5
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x14]
mov dword [esp + 0x538], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0x43cf08
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov eax, edi
mov ecx, dword [esp + 0x530]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x520]
xor ecx, esp
call fcn.00426052
add esp, 0x530
ret