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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10147b22
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x1019646c]
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.1003d8f0
push str.LOCAL_APPDATA_LOW
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 0
call fcn.10012770
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
push eax
call fcn.10019550
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.1003cc40
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 0x1003da84
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 0x1003daa2
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 0x1003dac7
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.1003d8f0
push str.APPLICATION_DATA
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 3
call fcn.10012770
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
push eax
call fcn.10019550
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.1003cc40
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 0x1003db58
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 0x1003db76
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 0x1003db9b
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.1003d8f0
push str.LocalLowAppData
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 6
call fcn.10012770
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
push eax
call fcn.10019550
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.1003cc40
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 0x1003dc2f
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 0x1003dc4d
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 0x1003dc72
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.1003d8f0
push str.Windows
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 9
call fcn.10012770
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
push eax
call fcn.10019550
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.1003cc40
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 0x1003dd03
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 0x1003dd21
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 0x1003dd46
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.1003d8f0
push str.System
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 0xc
call fcn.10012770
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
push eax
call fcn.10019550
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.1003cc40
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 0x1003ddd7
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 0x1003ddf5
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 0x1003de1a
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.1003d8f0
push str.SystemRoot
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 0xf
call fcn.10012770
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x10
push eax
call fcn.10019550
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.1003cc40
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 0x1003deab
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 0x1003dec9
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 0x1003deee
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.101166b0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1003dfb9
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push str.SystemDrive
lea ecx, [ebp - 0x484]
call fcn.10012770
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x480]
call fcn.10012770
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.1003cc40
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 0x1003df9b
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 0x1003dfb9
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], 0x10158264
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.101166b0
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.10012770
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x488]
call fcn.10012770
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.1003cc40
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 0x1003e10a
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 0x1003e128
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 0x1003e073
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.100f5f8d
mov esp, ebp
pop ebp
ret