Function at 0x4405c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov eax, dword [ebp + 8]
mov ecx, dword [0x4d100c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor edi, edi
dec edi
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
cmp byte [eax + 0xb], 0
js 0x440610
mov ecx, dword [eax + 8]
mov dword [ebp - 0x234], ecx
movsd xmm0, qword [eax]
movsd qword [ebp - 0x23c], xmm0
jmp 0x440620
lea ecx, [ebp - 0x23c]
push dword [eax + 4]
push dword [eax]
call fcn.00432c10
lea esi, [ebp - 0x218]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, esi
push str.SOFTWAREPolicies_
call fcn.00412be0
xor edi, edi
push esi
push edi
push dword [ebp + 0xc]
call fcn.004410ac
add esp, 0xc
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x21c], edi
cmp byte [esi + 0xb], 0
jns 0x440667
mov esi, dword [ebp - 0x218]
lea ebx, [ebp - 0x224]
push ebx
push str.UserDataDir
push esi
push edi
push 1
call fcn.00466a0f
add esp, 0x14
test al, al
jne 0x4406b1
cmp byte [ebp - 0x20d], 0
jns 0x440694
mov eax, dword [ebp - 0x218]
jmp 0x44069a
lea eax, [ebp - 0x218]
push ebx
push str.UserDataDir
push eax
push 0
push 2
call fcn.00466a0f
add esp, 0x14
test al, al
je 0x4406f4
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.00466c98
add esp, 8
cmp byte [ebp - 0x231], 0
jns 0x4406d8
push dword [ebp - 0x23c]
call fcn.0048ae3c
add esp, 4
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
movsd xmm0, qword [ebp - 0x230]
movsd qword [ebp - 0x23c], xmm0
cmp byte [ebp - 0x219], 0
jns 0x44070b
push dword [ebp - 0x224]
call fcn.0048ae3c
add esp, 4
cmp byte [ebp - 0x20d], 0
mov ebx, dword [ebp + 0xc]
jns 0x440725
push dword [ebp - 0x218]
call fcn.0048ae3c
add esp, 4
mov al, byte [ebp - 0x231]
test al, al
mov ecx, dword [ebp - 0x238]
movzx edx, al
mov esi, edx
cmovs esi, ecx
test esi, esi
je 0x4407d5
lea esi, [ebp - 0x23c]
mov ecx, esi
call fcn.0042fe80
cmp word [eax], 0x5c
je 0x440763
mov ecx, esi
call fcn.0042fe80
cmp word [eax], 0x2f
jne 0x4407c6
movzx eax, byte [ebp - 0x231]
test al, al
js 0x440789
test eax, eax
je 0x440a3b
cmp al, 6
jae 0x440a4c
dec eax
mov byte [ebp - 0x231], al
mov ecx, esi
jmp 0x4407a4
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x440a3b
mov ecx, dword [ebp - 0x23c]
dec eax
mov dword [ebp - 0x238], eax
mov word [ecx + eax*2], 0
mov al, byte [ebp - 0x231]
test al, al
mov ecx, dword [ebp - 0x238]
movzx edx, al
mov edi, edx
cmovs edi, ecx
test edi, edi
jne 0x440749
jmp 0x4407d5
mov al, byte [ebp - 0x231]
mov ecx, dword [ebp - 0x238]
movzx edx, al
test al, al
cmovs edx, ecx
test edx, edx
je 0x4407f5
lea eax, [ebp - 0x23c]
push eax
call fcn.00441c7f
add esp, 4
test al, al
jne 0x440973
mov ecx, dword [ebp + 0x14]
lea edi, [ebp - 0x23c]
push edi
call fcn.00436850
lea esi, [ebp - 0x218]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push str.LOCALAPPDATA
push esi
call fcn.004416e5
add esp, 8
movzx eax, byte [esi + 0xb]
test al, al
jns 0x440831
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x440891
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
mov esi, dword [ebp - 0x210]
mov dword [ebp - 0x234], esi
movsd xmm0, qword [ebp - 0x218]
movsd qword [ebp - 0x23c], xmm0
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], edx
movzx eax, byte [ebp - 0x231]
test al, al
js 0x440904
test eax, eax
jne 0x440918
jmp 0x440a6a
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x440958
mov edi, eax
inc edi
mov ecx, esi
push 0
push edi
call fcn.004334fa
cmp byte [ebp - 0x20d], 0
jns 0x4408bf
mov esi, dword [ebp - 0x218]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
mov ebx, dword [ebp + 0xc]
je 0x440a34
movzx ecx, byte [ebp - 0x20d]
test cl, cl
jns 0x4408e3
mov ecx, dword [ebp - 0x214]
cmp eax, ecx
lea edi, [ebp - 0x23c]
jae 0x440a34
lea ecx, [ebp - 0x218]
push 0
push eax
call fcn.004334fa
jmp 0x440835
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x440a6a
mov edi, dword [ebp - 0x23c]
cmp word [edi + eax*2 - 2], 0x5c
je 0x44092d
lea ecx, [ebp - 0x23c]
push 0x5c
call fcn.00433300
lea esi, [ebp - 0x23c]
push esi
push 1
push ebx
call fcn.004410ac
add esp, 0xc
mov ecx, esi
push 0x5c
call fcn.00433300
mov ecx, esi
push 9
push str.User_Data
call fcn.00433050
mov bl, 1
cmp byte [ebp - 0x20d], 0
jns 0x44096f
push dword [ebp - 0x218]
call fcn.0048ae3c
add esp, 4
test bl, bl
je 0x44099d
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.0048ea80
add esp, 0xc
cmp byte [ebp - 0x231], 0
jns 0x4409a1
mov eax, dword [ebp - 0x23c]
jmp 0x4409a7
xor ebx, ebx
jmp 0x440a06
lea eax, [ebp - 0x23c]
mov esi, dword [ebp + 0x10]
push 0x104
push eax
push edi
call fcn.004a02c8
add esp, 0xc
test eax, eax
je 0x4409cb
lea ecx, [ebp - 0x224]
push edi
call fcn.00412be0
jmp 0x4409df
xor eax, eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], eax
cmp byte [esi + 0xb], 0
jns 0x4409ef
push dword [esi]
call fcn.0048ae3c
add esp, 4
mov eax, dword [ebp - 0x21c]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x224]
movsd qword [esi], xmm0
mov bl, 1
cmp byte [ebp - 0x231], 0
jns 0x440a1d
push dword [ebp - 0x23c]
call fcn.0048ae3c
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b34a
mov eax, ebx
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x440958
push str.string::pop_back__:_string_is_already_empty
push str._empty__
push 0xc07
jmp 0x440a5b
push str.__s_should_never_be_greater_than_or_equal_to_the_short_string_capacity
push str.__s_____min_cap
push 0x6c6
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.00414c6c
push str.string_index_out_of_bounds
push str.__pos___size__
push 0x4a0
jmp 0x440a5b