Function at 0x402710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x40273b
push str.ck_WeR
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [edi + 4]
test edi, edi
je 0x40276a
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x408
push edi
call esi
inc eax
mov ecx, 0x64
cmp eax, ecx
push 0
cmovg eax, ecx
push eax
push 0x402
push edi
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00411080
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00411080
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00411080
mov esi, dword [0x4233a0]
add esp, 0x24
mov edx, dword [esi]
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x4027d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4027d0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub ecx, edi
sar ecx, 1
jne 0x402804
push 0
push 0x24
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x41edb4
push dword [esi]
call ebx
mov edx, dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x61c]
push edx
push eax
call esi
mov edi, dword [0x4233a0]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x402838
push 0x41eddc
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov eax, dword [edi + 0xc]
push eax
lea eax, [ebp - 0x61c]
push eax
call ebx
mov edi, dword [0x4233a0]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x402862
push 0x41e9e8
push dword [edi + 0x14]
call esi
push dword [edi + 0x14]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
sub esp, 8
lea eax, [ebp - 0x61c]
push 0x41e848
push eax
call fcn.00405390
mov edi, dword [0x4233a0]
mov edx, dword [edi]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x620], eax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4028a0
sub ecx, dword [ebp - 0x620]
sar ecx, 1
jne 0x4028d2
push 0
push 0x24
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x41edb4
push dword [edi]
call ebx
mov edx, dword [edi]
push edx
lea eax, [ebp - 0x414]
push eax
call esi
push 0x41e9e8
lea eax, [ebp - 0x414]
push eax
call ebx
push 0x41ea00
lea eax, [ebp - 0x414]
push eax
call ebx
push 0x41ea04
lea eax, [ebp - 0x414]
push eax
call ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00411080
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x41ea20
push eax
call esi
mov edi, dword [0x4233a0]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x402947
push 0x41e9e8
push dword [edi + 0x14]
call esi
push dword [edi + 0x14]
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
sub esp, 8
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00405390
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d13e
mov esp, ebp
pop ebp
ret