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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10152962
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x101a154c]
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
push str.AppDataLocalLow
push 0x28
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0
push eax
call fcn.1003de70
push str.LOCAL_APPDATA_LOW
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 0
call fcn.10012f50
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
push eax
call fcn.10019b20
add eax, 0x10
add esp, 4
mov dword [ebp - 0x480], eax
push dword [ebp - 0x488]
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x48c]
mov ecx, ebx
push eax
call fcn.1003d1c0
mov edx, dword [ebp - 0x480]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e004
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x484]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e022
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x47c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e047
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x1c
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0
push eax
call fcn.1003de70
push str.APPLICATION_DATA
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 3
call fcn.10012f50
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
push eax
call fcn.10019b20
add eax, 0x10
add esp, 4
mov dword [ebp - 0x480], eax
push dword [ebp - 0x488]
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x48c]
mov ecx, ebx
push eax
call fcn.1003d1c0
mov edx, dword [ebp - 0x480]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e0d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x484]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e0f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x47c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e11b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str...LocalLow
push 0x1a
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0
push eax
call fcn.1003de70
push str.LocalLowAppData
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 6
call fcn.10012f50
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
push eax
call fcn.10019b20
add eax, 0x10
add esp, 4
mov dword [ebp - 0x480], eax
push dword [ebp - 0x488]
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x48c]
mov ecx, ebx
push eax
call fcn.1003d1c0
mov edx, dword [ebp - 0x480]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e1af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x484]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e1cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x47c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e1f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x24
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0
push eax
call fcn.1003de70
push str.Windows
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 9
call fcn.10012f50
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
push eax
call fcn.10019b20
add eax, 0x10
add esp, 4
mov dword [ebp - 0x480], eax
push dword [ebp - 0x488]
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x48c]
mov ecx, ebx
push eax
call fcn.1003d1c0
mov edx, dword [ebp - 0x480]
or eax, 0xffffffff
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e283
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x484]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e2a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x47c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e2c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x25
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0
push eax
call fcn.1003de70
push str.System
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 0xc
call fcn.10012f50
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
push eax
call fcn.10019b20
add eax, 0x10
add esp, 4
mov dword [ebp - 0x480], eax
push dword [ebp - 0x488]
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x48c]
mov ecx, ebx
push eax
call fcn.1003d1c0
mov edx, dword [ebp - 0x480]
or eax, 0xffffffff
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e357
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x484]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e375
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x47c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e39a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x25
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0
push eax
call fcn.1003de70
push str.SystemRoot
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 0xf
call fcn.10012f50
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x10
push eax
call fcn.10019b20
add eax, 0x10
add esp, 4
mov dword [ebp - 0x480], eax
push dword [ebp - 0x488]
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x48c]
mov ecx, ebx
push eax
call fcn.1003d1c0
mov edx, dword [ebp - 0x480]
or eax, 0xffffffff
mov byte [ebp - 4], 0xf
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e42b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x484]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e449
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x47c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e46e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x210
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.101213d0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1003e539
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push str.SystemDrive
lea ecx, [ebp - 0x484]
call fcn.10012f50
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x480]
call fcn.10012f50
push dword [ebp - 0x488]
lea eax, [ebp - 0x484]
mov dword [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x48c]
mov ecx, ebx
push eax
call fcn.1003d1c0
mov edx, dword [ebp - 0x480]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e51b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x484]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e539
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x478], str.ALLUSERSPROFILE
lea edi, [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], 0x10163284
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
mov esi, dword [edi]
lea eax, [ebp - 0x430]
push 0x210
push 0
push eax
call fcn.101213d0
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 - 0x48c]
call fcn.10012f50
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x488]
call fcn.10012f50
push dword [ebp - 0x488]
lea eax, [ebp - 0x48c]
mov dword [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x484]
mov ecx, ebx
push eax
call fcn.1003d1c0
mov edx, dword [ebp - 0x488]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e68a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e6a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
lea eax, [ebp - 0x430]
cmp edi, eax
jne 0x1003e5f3
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.100f8fe1
mov esp, ebp
pop ebp
ret