Function at 0x45a680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x280
mov eax, dword [0x547008]
xor eax, ebp
mov dword [esp + 0x278], eax
mov eax, dword [0x559c88]
mov ecx, dword [0x54bb78]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45a92b
movzx eax, byte [0x559c87]
test al, al
js 0x45a6d0
mov edi, eax
and edi, 0x7f
jmp 0x45a6d6
mov edi, dword [0x559c80]
test edi, edi
js 0x45a8d2
je 0x45a6f1
test al, al
jns 0x45a6f1
cmp dword [0x559c7c], 0
je 0x45a8c1
mov ebx, dword [ebp + 8]
lea esi, [esp + 0x70]
push 0x208
push 0xff
push esi
call fcn.004ec220
add esp, 0xc
test edi, edi
je 0x45a7dd
mov eax, dword [0x559c88]
mov ecx, dword [0x54bb78]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45a8f0
mov eax, 0x559c7c
cmp byte [0x559c87], 0
jns 0x45a747
mov eax, dword [0x559c7c]
push 0x104
push eax
push esi
call fcn.005047df
add esp, 0xc
xor eax, eax
dec eax
lea ebx, [esp + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push esi
call fcn.005043ab
add esp, 4
lea edi, [esp + 0x18]
mov ecx, edi
push eax
push esi
call fcn.0049c050
mov ecx, edi
push 6
push 0x52eb9c
push ebx
call fcn.0049d200
mov ecx, edi
call fcn.0049c100
cmp byte [ebp + 0xc], 0
je 0x45a7a8
push ebx
call fcn.0048b230
add esp, 4
test al, al
je 0x45a856
lea ecx, [esp + 0xc]
push 2
push 0x52ebc4
mov ebx, dword [ebp + 8]
push ebx
call fcn.0049d200
lea ecx, [esp + 0xc]
call fcn.0049c100
mov ecx, dword [esp + 0x278]
xor ecx, ebp
call fcn.004e8be6
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [ebp + 0xc]
push eax
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x45a756
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0xc]
push eax
push esi
call fcn.00516ab0
add esp, 8
lea edi, [esp + 0x18]
mov ecx, edi
push esi
push 0x44
push str.GetUserIdFilePath
push 1
call fcn.0045bec0
lea ecx, [esp + 0x54]
push 0x52eb9b
push str.Cant_get_path_to_AppData_folder
call fcn.004148f0
mov ecx, edi
call fcn.0045bf00
cmp byte [esi + 0xb], 0
jns 0x45a84a
push dword [esp + 0xc]
call fcn.004e82d5
add esp, 4
mov ecx, ebx
call fcn.0049c000
jmp 0x45a7c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, esp
push eax
push esi
call fcn.00516ab0
add esp, 8
lea edi, [esp + 0x18]
mov ecx, edi
push esi
push 0x4b
push str.GetUserIdFilePath
push 1
call fcn.0045bec0
lea ecx, [esp + 0x54]
push 0x52ebc2
push str.Cant_create_directory:
call fcn.004148f0
lea ecx, [esp + 0x20]
push ebx
call fcn.00414720
mov ecx, edi
call fcn.0045bf00
cmp byte [esi + 0xb], 0
jns 0x45a8b2
push dword [esp]
call fcn.004e82d5
add esp, 4
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.0049c000
jmp 0x45a7bc
push str.string_view::string_view__CharT___size_t_:_received_nullptr
push str.__len__0____s___nullptr
push 0x13c
jmp 0x45a8e1
push str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
push str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
push 0x13a
push str....._third_partylibc_srcinclude_string_view
push str._s:_d:_assertion__s_failed:__s_n
call fcn.00457520
push 0x559c88
call fcn.004e8347
add esp, 4
cmp dword [0x559c88], 0xffffffff
jne 0x45a734
mov ecx, 0x559c7c
push 0x52b30c
call fcn.0041f0b0
push 0x559c88
call fcn.004e83bd
add esp, 4
jmp 0x45a734
push 0x559c88
call fcn.004e8347
add esp, 4
cmp dword [0x559c88], 0xffffffff
jne 0x45a6be
mov ecx, 0x559c7c
push 0x52b30c
call fcn.0041f0b0
push 0x559c88
call fcn.004e83bd
add esp, 4
jmp 0x45a6be