Function at 0x4589a0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c2fd
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x4ad658]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
push 0x48
mov dword [ebp - 0x1ac], ebx
mov dword [ebx + 8], edi
call fcn.00464e82
add esp, 4
cmp eax, edi
je 0x45903e
mov dword [ebx + 4], eax
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
mov eax, dword [ebx + 4]
mov byte [eax + 0x44], 1
mov ecx, dword [ebx + 4]
mov byte [ecx + 0x45], 1
lea edx, [ebp - 0x118]
push edx
push 0x104
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 3
push 0x49af00
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], edi
mov byte [ebp - 0x134], 0
call fcn.00412da0
sub esp, 0x1c
mov esi, esp
mov byte [ebp - 4], 1
mov dword [esi + 0x10], edi
lea eax, [ebp - 0x118]
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x1a8], esp
mov byte [esi], 0
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x458a70
sub eax, edi
push eax
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
call fcn.00412da0
lea edi, [ebp - 0x150]
call fcn.004593b0
add esp, 0x1c
push eax
lea esi, [ebp - 0x16c]
mov byte [ebp - 4], 2
call fcn.00457ca0
add esp, 4
lea ecx, [ebp - 0x134]
push ecx
mov edi, eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.004591b0
mov esi, 0x10
cmp dword [ebp - 0x158], esi
jb 0x458ad9
mov edx, dword [ebp - 0x16c]
push edx
call fcn.00464d3e
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x15c], 0
mov byte [ebp - 0x16c], 0
cmp dword [ebp - 0x13c], esi
jb 0x458b0c
mov eax, dword [ebp - 0x150]
push eax
call fcn.00464d3e
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x140], 0
mov byte [ebp - 0x150], 0
cmp dword [ebp - 0x120], esi
jb 0x458b3e
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00464d3e
add esp, 4
push 0x104
lea edx, [ebp - 0x118]
push edx
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 7
push str.appdata
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
call fcn.00412da0
sub esp, 0x1c
mov esi, esp
mov byte [ebp - 4], 4
mov dword [esi + 0x14], edi
lea eax, [ebp - 0x118]
mov dword [esi + 0x10], 0
mov dword [ebp - 0x1a8], esp
mov byte [esi], 0
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x458ba3
sub eax, edi
push eax
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
call fcn.00412da0
lea edi, [ebp - 0x16c]
call fcn.004593b0
add esp, 0x1c
push eax
lea esi, [ebp - 0x150]
mov byte [ebp - 4], 5
call fcn.00457ca0
add esp, 4
lea ecx, [ebp - 0x134]
push ecx
mov edi, eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.004591b0
mov esi, 0x10
cmp dword [ebp - 0x13c], esi
jb 0x458c0c
mov edx, dword [ebp - 0x150]
push edx
call fcn.00464d3e
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x150], bl
cmp dword [ebp - 0x158], esi
jb 0x458c3c
mov eax, dword [ebp - 0x16c]
push eax
call fcn.00464d3e
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 0x16c], bl
cmp dword [ebp - 0x120], esi
jb 0x458c68
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00464d3e
add esp, 4
push 0x104
lea edx, [ebp - 0x118]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0x1c
mov ecx, esp
lea eax, [ebp - 0x118]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x1a8], esp
mov byte [ecx], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x458c97
sub eax, esi
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00412da0
lea esi, [ebp - 0x1a4]
call fcn.00459290
add esp, 0x1c
mov ebx, 1
mov eax, esi
mov byte [ebp - 4], 7
call fcn.004594a0
cmp eax, 0xffffffff
je 0x458d10
push eax
xor ecx, ecx
lea esi, [ebp - 0x150]
lea edx, [ebp - 0x1a4]
call fcn.00423030
push eax
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 8
call fcn.00412930
mov byte [ebp - 4], 7
cmp dword [ebp - 0x13c], 0x10
jb 0x458d10
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.00464d3e
add esp, 4
push 4
xor ebx, ebx
mov esi, 0xf
push str.root
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
call fcn.00412da0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1a8], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 9
push ebx
lea edx, [ebp - 0x1a4]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00412a40
lea edi, [ebp - 0x16c]
call fcn.004593b0
add esp, 0x1c
push eax
lea esi, [ebp - 0x150]
mov byte [ebp - 4], 0xa
call fcn.00457ca0
add esp, 4
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0xb
push ecx
mov ecx, dword [ebp - 0x1ac]
mov edi, eax
call fcn.004591b0
mov edi, 0x10
cmp dword [ebp - 0x13c], edi
jb 0x458db6
mov edx, dword [ebp - 0x150]
push edx
call fcn.00464d3e
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x150], bl
cmp dword [ebp - 0x158], edi
jb 0x458de4
mov eax, dword [ebp - 0x16c]
push eax
call fcn.00464d3e
add esp, 4
mov byte [ebp - 4], 7
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 0x16c], bl
cmp dword [ebp - 0x120], edi
jb 0x458e11
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00464d3e
add esp, 4
push ebx
push 0x49a107
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x1b0], ebx
mov dword [ebp - 0x174], esi
mov dword [ebp - 0x178], ebx
mov byte [ebp - 0x188], bl
call fcn.00412da0
lea edx, [ebp - 0x1b0]
push edx
push 5
push ebx
mov byte [ebp - 4], 0xc
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x1b0]
cmp eax, ebx
je 0x458e91
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x458e91
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x458e73
sub eax, edx
push eax
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x188]
call fcn.00412da0
jmp 0x458ee6
push 2
push 0x49af14
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
call fcn.00412da0
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 0xd
call fcn.00412930
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x120], edi
jb 0x458ee6
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00464d3e
add esp, 4
push 8
push str.document
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
call fcn.00412da0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1a8], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 0xe
push ebx
lea edx, [ebp - 0x188]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00412a40
lea edi, [ebp - 0x16c]
call fcn.004593b0
add esp, 0x1c
push eax
lea esi, [ebp - 0x150]
mov byte [ebp - 4], 0xf
call fcn.00457ca0
add esp, 4
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0x10
push ecx
mov ecx, dword [ebp - 0x1ac]
mov edi, eax
call fcn.004591b0
mov edi, 0x10
cmp dword [ebp - 0x13c], edi
jb 0x458f85
mov edx, dword [ebp - 0x150]
push edx
call fcn.00464d3e
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x150], bl
cmp dword [ebp - 0x158], edi
jb 0x458fb3
mov eax, dword [ebp - 0x16c]
push eax
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 0x16c], bl
cmp dword [ebp - 0x120], edi
jb 0x458fdc
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00464d3e
add esp, 4
cmp dword [ebp - 0x174], edi
jb 0x458ff3
mov edx, dword [ebp - 0x188]
push edx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x174], esi
mov dword [ebp - 0x178], ebx
mov byte [ebp - 0x188], bl
cmp dword [ebp - 0x190], edi
jb 0x45901c
mov eax, dword [ebp - 0x1a4]
push eax
call fcn.00464d3e
add esp, 4
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1b4]
push ecx
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1b4], edi
call fcn.00464f9b
push 0x4a0c2c
lea edx, [ebp - 0x1c0]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.004695d4
int3