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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4318fa
mov eax, dword fs:[0]
push eax
sub esp, 0x96c
mov eax, dword [0x43d76c]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x948], ecx
mov eax, dword [ebp - 0x948]
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 8
mov ecx, dword [ebp - 0x948]
add ecx, 0x60
push ecx
push 0xd0
push 0x4344d0
call fcn.00401b50
add esp, 0x10
test eax, eax
jne 0x40c1d9
mov edx, dword [ebp - 0x948]
mov dword [edx + 0x60], 0
mov dword [edx + 0x64], 0
push 0
mov ecx, dword [ebp - 0x948]
add ecx, 4
call fcn.00410400
push 0
push 0xc
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
push 0x80
mov ecx, 0x43ec68
call fcn.00410070
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x10], eax
push 1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x948]
add ecx, 4
call fcn.00410390
push 0
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
push 0x80
mov ecx, 0x43ec68
call fcn.00410070
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x14], eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x948]
add ecx, 4
call fcn.00410390
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x43ec68
call fcn.004101b0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x948], 0
je 0x40c29d
mov edx, dword [ebp - 0x948]
add edx, 0x20
mov dword [ebp - 0x94c], edx
jmp 0x40c2a7
mov dword [ebp - 0x94c], 0
mov eax, dword [ebp - 0x94c]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00410130
cmp dword [ebp - 0x948], 0
je 0x40c2d0
mov ecx, dword [ebp - 0x948]
add ecx, 0x24
mov dword [ebp - 0x950], ecx
jmp 0x40c2da
mov dword [ebp - 0x950], 0
mov edx, dword [ebp - 0x950]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00410170
mov eax, dword [ebp - 0x948]
mov dword [eax + 0x68], 0
push 1
push 0x26
lea ecx, [ebp - 0x82c]
push ecx
mov edx, dword [ebp - 0x948]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40c329
push 0x4344d8
lea ecx, [ebp - 0x82c]
push ecx
call fcn.0040fe40
add esp, 8
lea edx, [ebp - 0x82c]
push edx
mov ecx, dword [ebp - 0x948]
add ecx, 0x40
call fcn.00403a50
push 0x99
lea eax, [ebp - 0x898]
push eax
call fcn.00401d70
add esp, 8
mov dword [ebp - 0x954], eax
mov ecx, dword [ebp - 0x954]
mov dword [ebp - 0x958], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x958]
push edx
mov ecx, dword [ebp - 0x948]
add ecx, 0x40
call fcn.0040c030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x898]
call fcn.00403a00
mov eax, dword [ebp - 0x948]
add eax, 0x40
push eax
call fcn.004033d0
add esp, 4
push 0x44
call fcn.0042192f
add esp, 4
mov dword [ebp - 0x8a0], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x8a0], 0
je 0x40c3d7
mov ecx, dword [ebp - 0x8a0]
call fcn.0040d600
mov dword [ebp - 0x95c], eax
jmp 0x40c3e1
mov dword [ebp - 0x95c], 0
mov ecx, dword [ebp - 0x95c]
mov dword [ebp - 0x89c], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x89c]
mov dword [ebp - 0x830], edx
mov eax, dword [ebp - 0x830]
mov ecx, dword [ebp - 0x948]
mov dword [eax + 0x28], ecx
mov dword [ebp - 0x83c], 0x64
mov edx, dword [ebp - 0x83c]
mov dword [ebp - 0x840], edx
mov dword [ebp - 0x838], 0x12c
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x834], eax
push 0
lea ecx, [ebp - 0x840]
push ecx
mov edx, dword [ebp - 0x948]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x830]
call fcn.0040e200
push 0
mov ecx, dword [ebp - 0x830]
add ecx, 4
call fcn.0040c0a0
cmp dword [ebp - 0x830], 0
je 0x40c483
mov ecx, dword [ebp - 0x830]
add ecx, 4
mov dword [ebp - 0x960], ecx
jmp 0x40c48d
mov dword [ebp - 0x960], 0
push 0x4344e0
lea ecx, [ebp - 0x8bc]
call fcn.00403990
mov dword [ebp - 4], 2
lea edx, [ebp - 0x8bc]
push edx
mov ecx, dword [ebp - 0x948]
add ecx, 0x6c
call fcn.0040e040
mov ecx, dword [ebp - 0x960]
mov dword [eax], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8bc]
call fcn.00403a00
push 0x44
call fcn.0042192f
add esp, 4
mov dword [ebp - 0x8c4], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x8c4], 0
je 0x40c506
mov ecx, dword [ebp - 0x8c4]
call fcn.0040d860
mov dword [ebp - 0x964], eax
jmp 0x40c510
mov dword [ebp - 0x964], 0
mov edx, dword [ebp - 0x964]
mov dword [ebp - 0x8c0], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x8c0]
mov dword [ebp - 0x844], eax
mov ecx, dword [ebp - 0x844]
mov edx, dword [ebp - 0x948]
mov dword [ecx + 0x28], edx
mov dword [ebp - 0x850], 0x64
mov eax, dword [ebp - 0x850]
mov dword [ebp - 0x854], eax
mov dword [ebp - 0x84c], 0x12c
mov ecx, dword [ebp - 0x84c]
mov dword [ebp - 0x848], ecx
push 0
lea edx, [ebp - 0x854]
push edx
mov eax, dword [ebp - 0x948]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x844]
call fcn.0040e220
push 0
mov ecx, dword [ebp - 0x844]
add ecx, 4
call fcn.0040c0a0
cmp dword [ebp - 0x844], 0
je 0x40c5b2
mov edx, dword [ebp - 0x844]
add edx, 4
mov dword [ebp - 0x968], edx
jmp 0x40c5bc
mov dword [ebp - 0x968], 0
push 0x4344f0
lea ecx, [ebp - 0x8e0]
call fcn.00403990
mov dword [ebp - 4], 4
lea eax, [ebp - 0x8e0]
push eax
mov ecx, dword [ebp - 0x948]
add ecx, 0x6c
call fcn.0040e040
mov ecx, dword [ebp - 0x968]
mov dword [eax], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8e0]
call fcn.00403a00
push 0x4c
call fcn.0042192f
add esp, 4
mov dword [ebp - 0x8e8], eax
mov dword [ebp - 4], 5
cmp dword [ebp - 0x8e8], 0
je 0x40c635
mov ecx, dword [ebp - 0x8e8]
call fcn.0040d240
mov dword [ebp - 0x96c], eax
jmp 0x40c63f
mov dword [ebp - 0x96c], 0
mov edx, dword [ebp - 0x96c]
mov dword [ebp - 0x8e4], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x8e4]
mov dword [ebp - 0x858], eax
mov ecx, dword [ebp - 0x858]
mov edx, dword [ebp - 0x948]
mov dword [ecx + 0x28], edx
mov dword [ebp - 0x864], 0x64
mov eax, dword [ebp - 0x864]
mov dword [ebp - 0x868], eax
mov dword [ebp - 0x860], 0x12c
mov ecx, dword [ebp - 0x860]
mov dword [ebp - 0x85c], ecx
push 0
lea edx, [ebp - 0x868]
push edx
mov eax, dword [ebp - 0x948]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x858]
call fcn.0040e360
push 0
mov ecx, dword [ebp - 0x858]
add ecx, 4
call fcn.0040c0a0
cmp dword [ebp - 0x858], 0
je 0x40c6e1
mov edx, dword [ebp - 0x858]
add edx, 4
mov dword [ebp - 0x970], edx
jmp 0x40c6eb
mov dword [ebp - 0x970], 0
push 0x43450c
lea ecx, [ebp - 0x904]
call fcn.00403990
mov dword [ebp - 4], 6
lea eax, [ebp - 0x904]
push eax
mov ecx, dword [ebp - 0x948]
add ecx, 0x6c
call fcn.0040e040
mov ecx, dword [ebp - 0x970]
mov dword [eax], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x904]
call fcn.00403a00
push 0x44
call fcn.0042192f
add esp, 4
mov dword [ebp - 0x90c], eax
mov dword [ebp - 4], 7
cmp dword [ebp - 0x90c], 0
je 0x40c764
mov ecx, dword [ebp - 0x90c]
call fcn.0040db40
mov dword [ebp - 0x974], eax
jmp 0x40c76e
mov dword [ebp - 0x974], 0
mov edx, dword [ebp - 0x974]
mov dword [ebp - 0x908], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x908]
mov dword [ebp - 0x86c], eax
mov ecx, dword [ebp - 0x86c]
mov edx, dword [ebp - 0x948]
mov dword [ecx + 0x28], edx
mov dword [ebp - 0x878], 0x64
mov eax, dword [ebp - 0x878]
mov dword [ebp - 0x87c], eax
mov dword [ebp - 0x874], 0x12c
mov ecx, dword [ebp - 0x874]
mov dword [ebp - 0x870], ecx
push 0
lea edx, [ebp - 0x87c]
push edx
mov eax, dword [ebp - 0x948]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x86c]
call fcn.0040e3b0
push 0
mov ecx, dword [ebp - 0x86c]
add ecx, 4
call fcn.0040c0a0
cmp dword [ebp - 0x86c], 0
je 0x40c810
mov edx, dword [ebp - 0x86c]
add edx, 4
mov dword [ebp - 0x978], edx
jmp 0x40c81a
mov dword [ebp - 0x978], 0
push 0x434528
lea ecx, [ebp - 0x928]
call fcn.00403990
mov dword [ebp - 4], 8
lea eax, [ebp - 0x928]
push eax
mov ecx, dword [ebp - 0x948]
add ecx, 0x6c
call fcn.0040e040
mov ecx, dword [ebp - 0x978]
mov dword [eax], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x928]
call fcn.00403a00
mov edx, dword [ebp - 0x948]
mov eax, dword [edx + 0x68]
push eax
mov ecx, dword [ebp - 0x948]
call fcn.0040ca70
push str.Welcome
lea ecx, [ebp - 0x944]
call fcn.00403990
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x944]
push ecx
mov ecx, dword [ebp - 0x948]
call fcn.0040d050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x944]
call fcn.00403a00
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00421275
mov esp, ebp
pop ebp
ret 0x10