Function at 0x407cb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4140eb
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x41d470]
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 ebx, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x238], 0x104
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
push 0x418bc8
push str..DEFAULTSoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov edx, 0x80000003
lea ecx, [ebp - 0x234]
call fcn.00406e60
add esp, 8
mov dword [ebp - 4], 0
cmp word [ebp - 0x218], 0
je 0x407e05
mov eax, dword [ebp - 0x234]
cmp dword [eax - 0xc], 0
je 0x407e05
push 0x418950
lea ecx, [ebp - 0x224]
call fcn.00402f80
push eax
lea edx, [ebp - 0x218]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.00408520
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
push dword [ebp - 0x234]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov edx, esi
lea ecx, [ebp - 0x21c]
call fcn.00407120
add esp, 4
lea edi, [ebx + 0x10]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00404ed0
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x21c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407dd5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407df6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x224]
jmp 0x407ec6
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x34c], 0x114
call fcn.00408ad0
cmp dword [ebp - 0x348], 5
jne 0x407e65
cmp dword [ebp - 0x344], 1
jb 0x407e65
lea ecx, [ebp - 0x21c]
call fcn.00406fc0
push str.Documents_and_SettingsDefault_UserMy_Documents
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x224]
call fcn.00407120
add esp, 4
lea edi, [ebx + 0x10]
mov byte [ebp - 4], 5
push eax
mov ecx, edi
call fcn.00404ed0
mov byte [ebp - 4], 4
jmp 0x407e9c
lea ecx, [ebp - 0x21c]
call fcn.00406fc0
push str.UsersDefaultDocuments
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x224]
call fcn.00407120
add esp, 4
lea edi, [ebx + 0x10]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.00404ed0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x224]
or esi, 0xffffffff
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407ebc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407edd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 9
push ecx
mov ecx, edi
call fcn.004088a0
push 0x418814
lea ecx, [ebp - 0x21c]
call fcn.00402f80
push 0x418d28
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 8
call fcn.00402f80
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x230]
call fcn.004050d0
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x22c]
call fcn.004050d0
mov byte [ebp - 4], 9
mov eax, esi
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x228], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407f62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407f83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebx + 4]
call fcn.00408440
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407fb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x230]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407fd4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x418814
lea ecx, [ebp - 0x220]
call fcn.00402f80
push 0x418d5c
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0xd
call fcn.00402f80
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x230]
call fcn.004050d0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x22c]
call fcn.004050d0
mov byte [ebp - 4], 0xe
mov eax, esi
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x228], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40804f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408070
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebx + 4]
call fcn.00408440
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4080a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x230]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4080c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x418814
lea ecx, [ebp - 0x220]
call fcn.00402f80
push 0x418d98
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0x12
call fcn.00402f80
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x230]
call fcn.004050d0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x22c]
call fcn.004050d0
mov byte [ebp - 4], 0x13
mov eax, esi
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x228], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40813c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40815d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebx + 4]
call fcn.00408440
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408191
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x230]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4081ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x418814
lea ecx, [ebp - 0x220]
call fcn.00402f80
push 0x418ddc
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0x17
call fcn.00402f80
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x230]
call fcn.004050d0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x22c]
call fcn.004050d0
mov byte [ebp - 4], 0x18
mov eax, esi
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x228], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408229
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40824a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x1b
push eax
lea ecx, [ebx + 4]
call fcn.00408440
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40827e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x230]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40829b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x418814
lea ecx, [ebp - 0x220]
call fcn.00402f80
push 0x418e08
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0x1c
call fcn.00402f80
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x1e
push eax
lea ecx, [ebp - 0x230]
call fcn.004050d0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x1f
push eax
lea ecx, [ebp - 0x22c]
call fcn.004050d0
mov byte [ebp - 4], 0x1d
mov eax, esi
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x228], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408316
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408337
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x20
push eax
lea ecx, [ebx + 4]
call fcn.00408440
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40836b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x230]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408388
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4083aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00401000
mov esp, ebp
pop ebp
ret