Function at 0x41cfd9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x475734
call fcn.004535cc
sub esp, 0x2e8
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push esi
push 0x47ee8c
lea ecx, [ebp + 0xc]
call fcn.0040b545
test eax, eax
jl 0x41d205
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x47ee88
call fcn.00401a8d
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea ecx, [ebp - 0xec]
call fcn.0040b7a3
mov byte [ebp - 4], 3
push dword [eax]
lea ecx, [ebp - 0x68]
call fcn.00401a8d
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 0x10
jb 0x41d051
mov eax, dword [eax + 4]
jmp 0x41d054
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00401a8d
mov byte [ebp - 4], 5
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 7
call fcn.0040898a
add esp, 0x3c
mov byte [ebp - 4], 9
push esi
push ebx
lea ecx, [ebp - 0x68]
call fcn.004014ab
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xe8]
cmp dword [ebp - 0xec], eax
je 0x41d0a2
push dword [ebp - 0xec]
call fcn.00455077
pop ecx
lea eax, [ebp - 0x24]
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042b4c6
mov ecx, eax
call fcn.00403d32
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042b4c6
mov ecx, eax
call fcn.00403d54
mov edi, eax
lea eax, [ebp - 0x44]
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042b4c6
mov ecx, eax
call fcn.00403d32
push 0x45936c
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x4c]
push eax
call fcn.004202c2
add esp, 0x20
lea eax, [ebp - 0x2f4]
push eax
xor esi, esi
push esi
push esi
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042b4c6
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00404312
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov byte [ebp - 4], 0xa
call dword [eax + 0x24]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41d1fa
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x10]
call fcn.00415196
mov byte [ebp - 4], 0xc
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042b4c6
push str.PROGRAMFILES
mov ecx, eax
call fcn.00403914
test eax, eax
jne 0x41d1a3
push esi
push 0x47ee80
lea ecx, [ebp - 0x10]
call fcn.0040b545
test eax, eax
jl 0x41d1a3
push 0x47ad14
push 0x47ee74
lea ecx, [ebp - 0x10]
call fcn.00414362
lea ecx, [ebp - 0x10]
call fcn.00414890
mov ecx, eax
call fcn.00414506
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040b964
push 2
lea ecx, [ebp - 0x3c]
call fcn.0042b4c6
cmp dword [eax + 0x18], 0x10
jb 0x41d1c4
mov eax, dword [eax + 4]
jmp 0x41d1c7
add eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b9c7
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
push eax
call fcn.0040918b
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
call fcn.00401436
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x10]
call fcn.00401436
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x3c]
call fcn.004067e7
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0040181b
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8