Function at 0x439590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x290
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0x288], eax
lea ebx, [esp + 0x80]
push 0x208
push 0xff
push ebx
call fcn.004926b0
add esp, 0xc
mov eax, dword [0x525060]
mov ecx, dword [0x52420c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x439617
push 0x525060
call fcn.0048e987
add esp, 4
cmp dword [0x525060], 0xffffffff
jne 0x439617
mov byte [0x52505f], 0
mov word [0x525054], 0
push 0x525060
call fcn.0048e9fd
add esp, 4
movzx eax, byte [0x52505f]
test al, al
jns 0x439627
mov eax, dword [0x525058]
test eax, eax
jne 0x439648
xor eax, eax
mov ecx, 0x525054
push eax
push 0x507bbe
push 0xffffffffffffffff
push eax
call fcn.00443250
test eax, eax
je 0x439741
mov eax, dword [0x525060]
mov ecx, dword [0x52420c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x439698
push 0x525060
call fcn.0048e987
add esp, 4
cmp dword [0x525060], 0xffffffff
jne 0x439698
mov byte [0x52505f], 0
mov word [0x525054], 0
push 0x525060
call fcn.0048e9fd
add esp, 4
mov eax, 0x525054
cmp byte [0x52505f], 0
jns 0x4396ab
mov eax, dword [0x525054]
push 0x104
push eax
push ebx
call fcn.004a861a
add esp, 0xc
xor eax, eax
dec eax
lea esi, [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push ebx
call fcn.004a81e6
add esp, 4
lea edi, [esp + 0x18]
mov ecx, edi
push eax
push ebx
call fcn.00443e60
mov ecx, edi
push 6
push 0x5090e0
push esi
call fcn.0046cb30
mov ecx, edi
call fcn.0046c2c0
cmp byte [ebp + 0xc], 0
je 0x43970c
push esi
call fcn.004450c0
add esp, 4
test al, al
je 0x4397bd
lea ecx, [esp + 0xc]
push 2
push 0x509108
mov esi, dword [ebp + 8]
push esi
call fcn.0046cb30
lea ecx, [esp + 0xc]
call fcn.0046c2c0
mov ecx, dword [esp + 0x288]
xor ecx, ebp
call fcn.0048f468
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [ebp + 0xc]
push eax
push 0x1a
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4396ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x74]
push eax
push esi
call fcn.004bcc70
add esp, 8
lea edi, [esp + 0x18]
mov ecx, edi
push esi
push 0x44
push str.GetUserIdFilePath
push 1
call fcn.004bca70
lea ecx, [esp + 0x54]
push 0x5090df
push str.Cant_get_path_to_AppData_folder
call fcn.004b9460
mov ecx, edi
call fcn.004bcab0
cmp byte [esi + 0xb], 0
jns 0x4397ae
push dword [esp + 0x74]
call fcn.0048e90d
add esp, 4
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0046c1e0
jmp 0x439729
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, esp
push eax
push edi
call fcn.004bcc70
add esp, 8
lea ecx, [esp + 0x18]
push edi
push 0x4b
push str.GetUserIdFilePath
push 1
call fcn.004bca70
lea edi, [esp + 0x54]
mov ecx, edi
push 0x509106
push str.Cant_create_directory:
call fcn.004b9460
movzx eax, byte [esp + 0x17]
test al, al
jns 0x439808
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
lea ebx, [esp + 0x74]
push eax
push esi
push ebx
call fcn.0046fb00
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x439827
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov ecx, edi
push eax
push ebx
call fcn.0046ab40
cmp byte [esp + 0x7f], 0
mov esi, dword [ebp + 8]
jns 0x439846
push dword [esp + 0x74]
call fcn.0048e90d
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004bcab0
cmp byte [esp + 0xb], 0
jns 0x439861
push dword [esp]
call fcn.0048e90d
add esp, 4
mov ecx, esi
call fcn.0046c1e0
jmp 0x439720