Function at 0x4119d0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x258
mov ax, word [0x428280]
push esi
push edi
mov word [esp + 8], ax
mov ecx, 0x95
xor eax, eax
lea edi, [esp + 0xa]
push 0x3d94
rep stosd dword es:[edi], eax
push 0x40
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x411a14
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
add esp, 0x258
ret
push ebx
push ebp
push 0
lea ecx, [esp + 0x14]
push 5
push ecx
push 0
mov dword [esi], 0x4c4
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
mov edi, 0x5c
je 0x411b7d
mov eax, dword [esi + 4]
push 0x12c
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
lea edx, [esp + 0x14]
lea eax, [eax + eax*2]
lea ecx, [esi + eax*4 + 0x26c]
push ecx
push edx
call ebp
mov ecx, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea ecx, [eax + edx*4]
lea ecx, [ecx + ecx*2]
lea edx, [esi + ecx*4]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [edx + 0x10]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
cmp word [esi + eax*2 + 0x26a], di
je 0x411ad9
add edx, 0x26c
push 0x426124
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov eax, dword [esi + 4]
add esp, 8
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea edx, [eax + eax*2]
mov ecx, dword [esi + edx*4 + 0x10]
lea eax, [esi + edx*4 + 0x10]
inc ecx
mov dword [eax], ecx
mov eax, dword [esi + 4]
push 0x12c
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea ecx, [esp + 0x14]
lea edx, [eax + eax*2]
lea eax, [esi + edx*4 + 0x14]
push eax
push ecx
call ebx
mov ecx, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*4 + 0xc], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 8], 1
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
lea edx, [ecx + ecx*2]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea edx, [esi + edx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [edx + 0xc]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
cmp word [esi + eax*2 + 0x12], di
je 0x411b7a
add edx, 0x14
push 0x426124
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov eax, dword [esi + 4]
add esp, 8
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea edx, [eax + eax*2]
mov ecx, dword [esi + edx*4 + 0xc]
lea eax, [esi + edx*4 + 0xc]
inc ecx
mov dword [eax], ecx
inc dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x411ccd
mov eax, dword [esi + 4]
push 0x12c
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea ecx, [esp + 0x14]
lea edx, [eax + eax*2]
lea eax, [esi + edx*4 + 0x26c]
push eax
push ecx
call ebp
mov ecx, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea ecx, [eax + edx*4]
lea ecx, [ecx + ecx*2]
lea edx, [esi + ecx*4]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [edx + 0x10]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
cmp word [esi + eax*2 + 0x26a], di
je 0x411c29
add edx, 0x26c
push 0x426124
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov eax, dword [esi + 4]
add esp, 8
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea edx, [eax + eax*2]
mov ecx, dword [esi + edx*4 + 0x10]
lea eax, [esi + edx*4 + 0x10]
inc ecx
mov dword [eax], ecx
mov eax, dword [esi + 4]
push 0x12c
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea ecx, [esp + 0x14]
lea edx, [eax + eax*2]
lea eax, [esi + edx*4 + 0x14]
push eax
push ecx
call ebx
mov ecx, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*4 + 0xc], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 8], 1
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
lea edx, [ecx + ecx*2]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea edx, [esi + edx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [edx + 0xc]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
cmp word [esi + eax*2 + 0x12], di
je 0x411cca
add edx, 0x14
push 0x426124
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov eax, dword [esi + 4]
add esp, 8
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea edx, [eax + eax*2]
mov ecx, dword [esi + edx*4 + 0xc]
lea eax, [esi + edx*4 + 0xc]
inc ecx
mov dword [eax], ecx
inc dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push 6
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x411e1d
mov eax, dword [esi + 4]
push 0x12c
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea ecx, [esp + 0x14]
lea edx, [eax + eax*2]
lea eax, [esi + edx*4 + 0x26c]
push eax
push ecx
call ebp
mov ecx, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea ecx, [eax + edx*4]
lea ecx, [ecx + ecx*2]
lea edx, [esi + ecx*4]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [edx + 0x10]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
cmp word [esi + eax*2 + 0x26a], di
je 0x411d79
add edx, 0x26c
push 0x426124
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov eax, dword [esi + 4]
add esp, 8
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea edx, [eax + eax*2]
mov ecx, dword [esi + edx*4 + 0x10]
lea eax, [esi + edx*4 + 0x10]
inc ecx
mov dword [eax], ecx
mov eax, dword [esi + 4]
push 0x12c
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea ecx, [esp + 0x14]
lea edx, [eax + eax*2]
lea eax, [esi + edx*4 + 0x14]
push eax
push ecx
call ebx
mov ecx, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*4 + 0xc], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 8], 1
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
lea edx, [ecx + ecx*2]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea edx, [esi + edx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [edx + 0xc]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
cmp word [esi + eax*2 + 0x12], di
je 0x411e1a
add edx, 0x14
push 0x426124
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov eax, dword [esi + 4]
add esp, 8
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea edx, [eax + eax*2]
mov ecx, dword [esi + edx*4 + 0xc]
lea eax, [esi + edx*4 + 0xc]
inc ecx
mov dword [eax], ecx
inc dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x411f56
mov eax, dword [esi + 4]
push 0x12c
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea ecx, [esp + 0x14]
lea edx, [eax + eax*2]
lea eax, [esi + edx*4 + 0x26c]
push eax
push ecx
call ebp
mov ecx, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea ecx, [eax + edx*4]
lea ecx, [ecx + ecx*2]
lea edx, [esi + ecx*4]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [edx + 0x10]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
cmp word [esi + eax*2 + 0x26a], di
je 0x411ec9
add edx, 0x26c
push 0x426124
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov eax, dword [esi + 4]
add esp, 8
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea edx, [eax + eax*2]
mov ecx, dword [esi + edx*4 + 0x10]
lea eax, [esi + edx*4 + 0x10]
inc ecx
mov dword [eax], ecx
mov eax, dword [esi + 4]
push 0x12c
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea ecx, [esp + 0x14]
lea edx, [eax + eax*2]
lea eax, [esi + edx*4 + 0x14]
push eax
push ecx
call ebx
mov ecx, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*4 + 0xc], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea ecx, [eax + edx*4]
lea ecx, [ecx + ecx*2]
lea edx, [esi + ecx*4]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [edx + 0xc]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
cmp word [esi + eax*2 + 0x12], di
je 0x411f53
add edx, 0x14
push 0x426124
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov eax, dword [esi + 4]
add esp, 8
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea edx, [eax + eax*2]
mov ecx, dword [esi + edx*4 + 0xc]
lea eax, [esi + edx*4 + 0xc]
inc ecx
mov dword [eax], ecx
inc dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push 0x24
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41208f
mov eax, dword [esi + 4]
push 0x12c
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea ecx, [esp + 0x14]
lea edx, [eax + eax*2]
lea eax, [esi + edx*4 + 0x26c]
push eax
push ecx
call ebp
mov ecx, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea ecx, [eax + edx*4]
lea ecx, [ecx + ecx*2]
lea edx, [esi + ecx*4]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [edx + 0x10]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
cmp word [esi + eax*2 + 0x26a], di
je 0x412002
add edx, 0x26c
push 0x426124
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov eax, dword [esi + 4]
add esp, 8
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea edx, [eax + eax*2]
mov ecx, dword [esi + edx*4 + 0x10]
lea eax, [esi + edx*4 + 0x10]
inc ecx
mov dword [eax], ecx
mov eax, dword [esi + 4]
push 0x12c
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea ecx, [esp + 0x14]
lea edx, [eax + eax*2]
lea eax, [esi + edx*4 + 0x14]
push eax
push ecx
call ebx
mov ecx, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*4 + 0xc], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea ecx, [eax + edx*4]
lea ecx, [ecx + ecx*2]
lea edx, [esi + ecx*4]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [edx + 0xc]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
cmp word [esi + eax*2 + 0x12], di
je 0x41208c
add edx, 0x14
push 0x426124
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov eax, dword [esi + 4]
add esp, 8
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea edx, [eax + eax*2]
mov ecx, dword [esi + edx*4 + 0xc]
lea eax, [esi + edx*4 + 0xc]
inc ecx
mov dword [eax], ecx
inc dword [esi + 4]
push 0
push 0
push 0
push 0
push 0x3d94
push esi
push 0x82164
call fcn.0040f110
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
mov eax, edi
pop ebx
pop edi
pop esi
add esp, 0x258
ret