Function at 0x413370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459ff3
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x22c], 0
mov eax, dword [0x47d1c4]
test al, 1
jne 0x4133d8
or eax, 1
mov ecx, 0x47d1ac
mov dword [0x47d1c4], eax
call fcn.00403520
push 0x45f100
call fcn.0043c032
add esp, 4
mov ecx, 0x47d1ac
call fcn.00402400
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x413623
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0043d5c0
add esp, 0xc
lea ecx, [ebp - 0x220]
xor edi, edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x220], edi
call fcn.0040d0b0
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0040dda0
lea ecx, [ebp - 0x220]
test al, al
jne 0x41344f
mov byte [ebp - 4], al
call fcn.0040d130
jmp 0x4134a9
call fcn.0040d7f0
test al, al
jne 0x413468
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], al
call fcn.0040d130
jmp 0x4134a9
lea eax, [ebp - 0x21c]
push eax
push 1
push dword [ebp - 0x224]
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
mov ecx, 1
cmove edi, ecx
lea ecx, [ebp - 0x220]
call fcn.0040daf0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call fcn.0040d130
test edi, edi
jne 0x4134bc
push 0
push 0x1a
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x234], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4134f6
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x244]
call fcn.00402430
push ecx
lea edx, [ebp - 0x244]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.0040b160
add esp, 4
push eax
mov ecx, 0x47d1ac
mov byte [ebp - 4], 3
call fcn.004047a0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x413587
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41357d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41365f
push edx
push ecx
call fcn.0043b959
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], 8
mov edx, dword [ebp - 0x230]
cmp edx, 8
jb 0x4135eb
mov ecx, dword [ebp - 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4135e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413664
push edx
push ecx
call fcn.0043b959
add esp, 8
xor eax, eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
mov ecx, 0x47d1ac
mov byte [ebp - 4], al
call fcn.00403f40
test al, al
jne 0x413623
mov ecx, 0x47d1ac
call fcn.004041d0
push 0x47d1ac
mov ecx, esi
call fcn.00403560
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043b918
mov esp, ebp
pop ebp
ret 4
call fcn.0043faa6
call fcn.0043faa6
int3