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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10181d72
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x101dd594]
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.10041d10
push str.LOCAL_APPDATA_LOW
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 0
call fcn.10016670
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
push eax
call fcn.1001d450
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.10041060
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 0x10041ea4
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 0x10041ec2
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 0x10041ee7
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.10041d10
push str.APPLICATION_DATA
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 3
call fcn.10016670
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
push eax
call fcn.1001d450
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.10041060
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 0x10041f78
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 0x10041f96
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 0x10041fbb
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.10041d10
push str.LocalLowAppData
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 6
call fcn.10016670
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
push eax
call fcn.1001d450
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.10041060
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 0x1004204f
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 0x1004206d
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 0x10042092
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.10041d10
push str.Windows
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 9
call fcn.10016670
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
push eax
call fcn.1001d450
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.10041060
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 0x10042123
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 0x10042141
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 0x10042166
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.10041d10
push str.System
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 0xc
call fcn.10016670
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
push eax
call fcn.1001d450
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.10041060
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 0x100421f7
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 0x10042215
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 0x1004223a
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.10041d10
push str.SystemRoot
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], 0xf
call fcn.10016670
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x10
push eax
call fcn.1001d450
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.10041060
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 0x100422cb
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 0x100422e9
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 0x1004230e
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.10150460
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x100423d9
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push str.SystemDrive
lea ecx, [ebp - 0x484]
call fcn.10016670
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x480]
call fcn.10016670
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.10041060
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 0x100423bb
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 0x100423d9
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], 0x1019745c
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.10150460
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.10016670
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x488]
call fcn.10016670
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.10041060
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 0x1004252a
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 0x10042548
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 0x10042493
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.10128191
mov esp, ebp
pop ebp
ret