Function at 0x40fb70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4720a7
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x48d030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x13c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x138], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x1a
push 0
mov dword [ebp - 0x138], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x124], 0
xorps xmm0, xmm0
mov dword [ebp - 0x120], 0
movups xmmword [ebp - 0x134], xmm0
test eax, eax
js 0x40fcf5
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fc35
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.00417640
lea eax, [ebp - 0x134]
mov ecx, esi
push eax
call fcn.00412ad0
mov ecx, dword [ebp - 0x120]
cmp ecx, 0x10
jb 0x40fc99
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fc8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd41
push ecx
push edx
call fcn.0047012d
add esp, 8
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 0xb
jb 0x40fcd6
lea eax, [ecx + 0xb]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x40fcb7
mov eax, dword [esi]
push 0xb
lea esi, [eax + ecx]
push str.Microsoft_
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + 0xb], 0
add esp, 0xc
mov esi, dword [ebp - 0x11c]
jmp 0x40fd51
push 0xb
push str.Microsoft_
mov byte [ebp - 0x118], 0
mov ecx, esi
push dword [ebp - 0x118]
push 0xb
call fcn.004174e0
jmp 0x40fd51
push 2
push 0x481df4
lea ecx, [ebp - 0x134]
call fcn.00417640
lea eax, [ebp - 0x134]
mov ecx, esi
push eax
call fcn.00412ad0
mov ecx, dword [ebp - 0x120]
cmp ecx, 0x10
jb 0x40fd51
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fd47
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40fd47
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0047012d
add esp, 8
mov edi, 0x491b38
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x40fd60
mov edx, dword [esi + 0x14]
sub edi, ecx
mov ecx, dword [esi + 0x10]
mov eax, edx
sub eax, ecx
cmp edi, eax
ja 0x40fda4
lea eax, [ecx + edi]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x40fd86
mov eax, dword [esi]
push edi
lea esi, [eax + ecx]
push 0x491b38
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x11c]
jmp 0x40fdbf
push edi
push 0x491b38
mov byte [ebp - 0x118], 0
mov ecx, esi
push dword [ebp - 0x118]
push edi
call fcn.004174e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046fb30
mov esp, ebp
pop ebp
ret