Function at 0x642550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040591c
xor eax, eax
push ebp
push 0x642721
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x24], 1
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov eax, dword [0x63fb3c]
call fcn.0041d28c
test eax, eax
jl 0x6425c3
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.006417bc
and eax, 0x7f
mov eax, dword [eax*4 + 0x68a850]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov dword [ebp - 0x24], eax
jmp 0x642689
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x6425e2
mov eax, dword [ebp - 0x30]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jle 0x642689
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x64260b
mov eax, dword [ebp - 0x38]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x38]
cmp byte [eax + edx - 1], 0x3a
jne 0x64262a
mov eax, dword [ebp - 0xc]
mov edx, 0x642738
call fcn.00405734
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x642649
mov eax, dword [ebp - 0x40]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0040684c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0x44]
call fcn.006416a4
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x6426da
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x48]
mov eax, dword [0x68c9b8]
call fcn.00407d00
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
lea edx, [ebp - 0x50]
xor ecx, ecx
pop eax
call fcn.0040c7e4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004054bc
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x409748]
call fcn.0040fea4
call fcn.00404de0
mov eax, dword [ebp - 0x18]
call fcn.006424bc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
je 0x6426f3
mov eax, dword [ebp - 4]
call fcn.00404460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x642728
lea eax, [ebp - 0x48]
call fcn.00405468
lea eax, [ebp - 0x44]
call fcn.00407790
lea eax, [ebp - 0x28]
call fcn.00405468
lea eax, [ebp - 8]
call fcn.00405468
ret