Function at 0x40fe30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472067
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 0x40ffb5
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fef5
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.004170d0
lea eax, [ebp - 0x134]
mov ecx, esi
push eax
call fcn.00412680
mov ecx, dword [ebp - 0x120]
cmp ecx, 0x10
jb 0x40ff59
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ff4f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410001
push ecx
push edx
call fcn.0046ff2c
add esp, 8
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 0xb
jb 0x40ff96
lea eax, [ecx + 0xb]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x40ff77
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 0x410011
push 0xb
push str.Microsoft_
mov byte [ebp - 0x118], 0
mov ecx, esi
push dword [ebp - 0x118]
push 0xb
call fcn.00416f70
jmp 0x410011
push 2
push 0x481ab4
lea ecx, [ebp - 0x134]
call fcn.004170d0
lea eax, [ebp - 0x134]
mov ecx, esi
push eax
call fcn.00412680
mov ecx, dword [ebp - 0x120]
cmp ecx, 0x10
jb 0x410011
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410007
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410007
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0046ff2c
add esp, 8
mov edi, 0x491a90
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x410020
mov edx, dword [esi + 0x14]
sub edi, ecx
mov ecx, dword [esi + 0x10]
mov eax, edx
sub eax, ecx
cmp edi, eax
ja 0x410064
lea eax, [ecx + edi]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x410046
mov eax, dword [esi]
push edi
lea esi, [eax + ecx]
push 0x491a90
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x11c]
jmp 0x41007f
push edi
push 0x491a90
mov byte [ebp - 0x118], 0
mov ecx, esi
push dword [ebp - 0x118]
push edi
call fcn.00416f70
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.0046f931
mov esp, ebp
pop ebp
ret