Function at 0x458250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492b90
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0xf09820]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x140]
push eax
push 0
push 0
push 0x4a91cc
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x140], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x458597
push 0x104
push dword [ebp - 0x140]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
lea esi, [ebp - 0x114]
add esp, 0xc
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4582e0
sub esi, ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x13c], ecx
cmp esi, ecx
ja 0x45832e
mov dword [ebp - 0x134], edi
mov eax, edi
cmp ecx, 0x10
jb 0x45830b
mov eax, dword [edi]
mov dword [ebp - 0x134], eax
push esi
lea ecx, [ebp - 0x114]
mov dword [edi + 0x10], esi
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x134]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x45842d
cmp esi, 0x7fffffff
ja 0x4585b2
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x45835e
mov eax, 0x80000000
mov edi, 0x7fffffff
push eax
call fcn.00402560
add esp, 4
mov ecx, eax
jmp 0x4583bc
mov edx, ecx
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x458384
mov eax, 0x80000000
mov edi, 0x7fffffff
push eax
call fcn.00402560
add esp, 4
mov ecx, eax
jmp 0x4583bc
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x4583a3
push eax
call fcn.00402560
add esp, 4
mov ecx, eax
jmp 0x4583bc
test eax, eax
je 0x4583ba
push eax
call sub.mfc140.dll_Ordinal_1507
add esp, 4
mov dword [ebp - 0x130], eax
mov ecx, eax
jmp 0x4583c2
xor ecx, ecx
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp - 0x134]
push esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
lea eax, [ebp - 0x114]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x130]
add esp, 0xc
mov ecx, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x134]
mov byte [eax + esi], 0
cmp ecx, 0x10
jb 0x45842b
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x45841b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458587
mov eax, edx
push ecx
push eax
call fcn.004821ac
mov eax, dword [ebp - 0x130]
add esp, 8
mov dword [edi], eax
mov ecx, dword [ebp - 0x138]
mov eax, 0x7fffffff
mov edx, dword [ecx + 0x10]
sub eax, edx
mov dword [ebp - 0x13c], edx
cmp eax, 1
jb 0x4585b2
cmp dword [ecx + 0x14], 0x10
jb 0x45845a
mov ecx, dword [ecx]
mov dword [ebp - 0x138], ecx
inc edx
lea eax, [ebp - 0x12c]
mov esi, 0xf
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x130], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x12c], xmm0
cmp edx, esi
jbe 0x458506
mov esi, edx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x4584b2
mov eax, 0x80000000
mov esi, 0x7fffffff
push eax
call fcn.00402560
mov ecx, dword [ebp - 0x138]
add esp, 4
mov edx, dword [ebp - 0x134]
jmp 0x4584fa
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x4584dd
push eax
call fcn.00402560
mov ecx, dword [ebp - 0x138]
add esp, 4
mov edx, dword [ebp - 0x134]
jmp 0x4584fa
test eax, eax
je 0x4584f8
push eax
call sub.mfc140.dll_Ordinal_1507
mov ecx, dword [ebp - 0x138]
add esp, 4
mov edx, dword [ebp - 0x134]
jmp 0x4584fa
xor eax, eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x118], esi
mov esi, dword [ebp - 0x13c]
mov dword [ebp - 0x11c], edx
push esi
mov byte [eax], 0x5c
inc eax
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x130]
add esp, 0xc
mov byte [eax + esi + 1], 0
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push dword [ebp - 0x11c]
cmovae eax, dword [ebp - 0x12c]
mov ecx, edi
push eax
mov dword [ebp - 4], 0
call fcn.00410460
mov ecx, dword [ebp - 0x118]
cmp ecx, 0x10
jb 0x458597
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45858d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45858d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004821ac
add esp, 8
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.00482551
mov esp, ebp
pop ebp
ret
call fcn.00410420
int3