Function at 0x402880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8ddd
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x460], edi
xor eax, eax
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push eax
call fcn.004d00d0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d00d0
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
add esp, 0x18
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov dword [ebp - 0x43c], 0
lea eax, [ebp - 0x43c]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x402988
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x402988
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x402988
push dword [ebp - 0x43c]
call ebx
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402991
sub eax, edx
lea ecx, [ebp - 0x438]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00402460
cmp dword [ebp - 0x428], 0
ja 0x4029cc
push 0x64
inc esi
call edi
cmp esi, 0xa
jl 0x402936
jmp 0x4029de
push 0x14
push str.TencentWeChatlog_
lea ecx, [ebp - 0x438]
call fcn.00403e30
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x458]
call fcn.00403c70
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x440]
cmp dword [ebp - 0x444], 8
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
push 0
push dword [ebp - 0x448]
mov byte [eax], 0
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
push 0
push 0
mov dword [ebp - 0x45c], 2
call ebx
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.004ce3fc
add esp, 4
mov esi, eax
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push 0
push 0
push edi
push esi
push dword [ebp - 0x448]
push eax
push 0
push 0
call ebx
mov byte [esi + edi], 0
mov edi, dword [ebp - 0x440]
mov ecx, edi
push esi
call fcn.00403d00
push esi
call fcn.004ce3c7
mov edx, dword [ebp - 0x444]
add esp, 4
cmp edx, 8
jb 0x402adf
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402ad5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b56
push edx
push ecx
call fcn.004ce396
add esp, 8
mov edx, dword [ebp - 0x424]
xor eax, eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
cmp edx, 8
jb 0x402b38
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402b2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b56
push edx
push ecx
call fcn.004ce396
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cdf2e
mov esp, ebp
pop ebp
ret
call fcn.004d85d5
int3