Function at 0x4af2c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 4
mov edi, ecx
mov dword [ebp - 0x14], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], 0
mov dword [eax], 0
call fcn.004a60e0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], 0x105
mov eax, dword [ecx]
cmp eax, 0x105
jae 0x4af335
lea eax, [eax*2 + 0x10]
mov esi, 0x105
and eax, 0xfff0
cmp eax, esi
cmova esi, eax
lea eax, [esi*2 + 4]
push eax
push ecx
call fcn.00478579
mov ecx, eax
add esp, 8
mov dword [ebp - 0xc], ecx
mov dword [ecx], esi
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ecx + 4]
push eax
push 0
push 0
push 0x1a
push 0
call ebx
test eax, eax
je 0x4af3d6
lea ecx, [ebp - 0x14]
call fcn.004a60e0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], 0x105
mov eax, dword [ecx]
cmp eax, 0x105
jae 0x4af39a
lea eax, [eax*2 + 0x10]
mov esi, 0x105
and eax, 0xfff0
cmp eax, esi
cmova esi, eax
lea eax, [esi*2 + 4]
push eax
push ecx
call fcn.00478579
mov ecx, eax
add esp, 8
mov dword [ebp - 0xc], ecx
mov dword [ecx], esi
lea eax, [ecx + 4]
push eax
push 1
push 0
push 0x1a
push 0
call ebx
test eax, eax
je 0x4af3d6
lea ecx, [ebp - 0x14]
call fcn.004a60e0
mov ecx, dword [ebp + 8]
call fcn.004a7c10
push 0x4e5bb0
push 0x4e3d38
push eax
call fcn.004a4cb0
add esp, 0xc
xor bl, bl
jmp 0x4af5a1
lea ecx, [ebp - 0x14]
call fcn.004a5520
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x34]
push 0
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.004b7750
mov esi, dword [ebp - 0x2c]
lea ecx, [edi + 0x3c]
mov dword [ebp + 8], ecx
lea eax, [esi + 4]
push eax
call fcn.004a5ed0
test esi, esi
je 0x4af416
push esi
call fcn.00459651
add esp, 4
cmp byte [edi], 0
je 0x4af59f
mov eax, dword [edi + 0x44]
add eax, 4
push 0x5c
push eax
call fcn.0044f834
add esp, 8
test eax, eax
jne 0x4af43c
mov esi, dword [edi + 0x44]
add esi, 4
jmp 0x4af43f
lea esi, [eax + 2]
push 4
mov dword [ebp - 0x24], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0
mov dword [eax], 0
call fcn.004a60e0
push esi
lea ecx, [ebp - 0x24]
call fcn.004a5ed0
mov edi, dword [ebp - 0x1c]
mov ecx, str.Application_Data
lea esi, [edi + 4]
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4af4a6
test dx, dx
je 0x4af4a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4af4a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4af480
xor eax, eax
jmp 0x4af4ab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4af592
push 2
push 0x4e5c0c
push esi
call fcn.00459434
add esp, 0xc
test eax, eax
je 0x4af592
mov ecx, 0x4e5c10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4af4d3
mov esi, dword [edi]
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, esi
jbe 0x4af512
lea esi, [esi*2 + 0x10]
and esi, 0xfff0
cmp ebx, esi
cmovae esi, ebx
lea eax, [esi*2 + 4]
push eax
push edi
call fcn.00478579
mov edi, eax
add esp, 8
mov dword [edi], esi
lea ecx, [ebx + ebx]
push ecx
lea esi, [edi + 4]
push 0x4e5c10
push esi
call fcn.0044e3e0
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.004b70d0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.004b6f50
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x34]
call fcn.004b7750
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
call fcn.004b6e00
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4af56c
push eax
call fcn.00459651
add esp, 4
mov ecx, ebx
call fcn.004b7370
mov esi, dword [ebp - 0x1c]
test al, al
je 0x4af585
lea eax, [esi + 4]
mov ecx, ebx
push eax
call fcn.004a5ed0
test esi, esi
je 0x4af592
push esi
call fcn.00459651
add esp, 4
test edi, edi
je 0x4af59f
push edi
call fcn.00459651
add esp, 4
mov bl, 1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4af5b1
push eax
call fcn.00459651
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4