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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10201040
call fcn.10158ccb
push dword [ebp + 8]
call 0x1000c260
pop ebp
jmp 0x1000ba30
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019e852
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x101eff24]
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, dword [ebp + 8]
mov ecx, 0x10201040
mov dword [ebp - 0x48c], ebx
call fcn.10158ccb
push str.AppDataLocalLow
push 0x28
lea eax, [ebp - 0x484]
push eax
call fcn.1000b930
push str.LOCAL_APPDATA_LOW
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 0
call fcn.10006f10
mov eax, dword [ebp - 0x484]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
push eax
call fcn.1000b0b0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x47c], eax
push dword [ebp - 0x48c]
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x494]
mov ecx, ebx
push eax
call fcn.1000aba0
mov ecx, dword [ebp - 0x47c]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bb05
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x480]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bb2f
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x484]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bb60
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
push 0
push 0x1c
lea eax, [ebp - 0x484]
push eax
call fcn.1000b930
push str.APPLICATION_DATA
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 3
call fcn.10006f10
mov eax, dword [ebp - 0x484]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
push eax
call fcn.1000b0b0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x47c], eax
push dword [ebp - 0x48c]
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x494]
mov ecx, ebx
push eax
call fcn.1000aba0
mov ecx, dword [ebp - 0x47c]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bbef
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x480]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bc19
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x484]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bc4a
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
push str...LocalLow
push 0x1a
lea eax, [ebp - 0x484]
push eax
call fcn.1000b930
push str.LocalLowAppData
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 6
call fcn.10006f10
mov eax, dword [ebp - 0x484]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
push eax
call fcn.1000b0b0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x47c], eax
push dword [ebp - 0x48c]
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x494]
mov ecx, ebx
push eax
call fcn.1000aba0
mov ecx, dword [ebp - 0x47c]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bcdc
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x480]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bd06
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x484]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bd37
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
push 0
push 0x24
lea eax, [ebp - 0x484]
push eax
call fcn.1000b930
push str.Windows
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 9
call fcn.10006f10
mov eax, dword [ebp - 0x484]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
push eax
call fcn.1000b0b0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x47c], eax
push dword [ebp - 0x48c]
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x494]
mov ecx, ebx
push eax
call fcn.1000aba0
mov ecx, dword [ebp - 0x47c]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bdc6
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x480]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bdf0
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x484]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000be21
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
push 0
push 0x25
lea eax, [ebp - 0x484]
push eax
call fcn.1000b930
push str.System
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 0xc
call fcn.10006f10
mov eax, dword [ebp - 0x484]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
push eax
call fcn.1000b0b0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x47c], eax
push dword [ebp - 0x48c]
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x494]
mov ecx, ebx
push eax
call fcn.1000aba0
mov ecx, dword [ebp - 0x47c]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000beb0
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x480]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000beda
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x484]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bf0b
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
push 0
push 0x25
lea eax, [ebp - 0x484]
push eax
call fcn.1000b930
push str.SystemRoot
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 0xf
call fcn.10006f10
mov eax, dword [ebp - 0x484]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x10
push eax
call fcn.1000b0b0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x47c], eax
push dword [ebp - 0x48c]
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x494]
mov ecx, ebx
push eax
call fcn.1000aba0
mov ecx, dword [ebp - 0x47c]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bf9a
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x480]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bfc4
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x484]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000bff5
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
push 0x210
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.1016abc0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1000c08b
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push str.SystemDrive
lea ecx, [ebp - 0x488]
call fcn.10006f10
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x484]
call fcn.10006f10
push dword [ebp - 0x48c]
lea eax, [ebp - 0x488]
mov dword [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x494]
mov ecx, ebx
push eax
call fcn.1000aba0
lea ecx, [ebp - 0x488]
mov dword [ebp - 4], 0xffffffff
call 0x1000afa0
mov dword [ebp - 0x478], str.ALLUSERSPROFILE
lea ebx, [ebp - 0x478]
mov dword [ebp - 0x474], str.COMMONPROGRAMFILES_x86_
mov dword [ebp - 0x470], str.COMMONPROGRAMFILES
mov dword [ebp - 0x46c], str.HOMEDRIVE
mov dword [ebp - 0x468], str.HOMEPATH
mov dword [ebp - 0x464], str.LOCALAPPDATA
mov dword [ebp - 0x460], str.PROGRAMDATA
mov dword [ebp - 0x45c], str.PROGRAMFILES
mov dword [ebp - 0x458], str.PUBLIC
mov dword [ebp - 0x454], str.SYSTEMDRIVE
mov dword [ebp - 0x450], str.SYSTEMROOT
mov dword [ebp - 0x44c], str.TEMP
mov dword [ebp - 0x448], 0x101adee4
mov dword [ebp - 0x444], str.USERPROFILE
mov dword [ebp - 0x440], str.WINDIR
mov dword [ebp - 0x43c], str.PROGRAMW6432
mov dword [ebp - 0x438], str.PROGRAMFILES_x86_
mov dword [ebp - 0x434], str.COMMONPROGRAMW6432
nop word [eax + eax]
mov esi, dword [ebx]
lea eax, [ebp - 0x430]
push 0x210
push 0
push eax
call fcn.1016abc0
add esp, 0xc
lea eax, [ebp - 0x430]
push 0x108
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
lea ecx, [ebp - 0x480]
call fcn.10006f10
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x47c]
call fcn.10006f10
push dword [ebp - 0x48c]
mov ecx, dword [ebp - 0x48c]
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x494]
mov dword [ebp - 4], 0x15
push eax
call fcn.1000aba0
mov ecx, dword [ebp - 0x47c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000c1f7
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x480]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1000c221
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101ab4d8]
mov ecx, edi
call esi
add ebx, 4
lea eax, [ebp - 0x430]
cmp ebx, eax
jne 0x1000c150
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.10158d02
mov esp, ebp
pop ebp
ret 4