Function at 0x4163a8
Capabilities:
Get common file path

Disassembly:
mov eax, 0x47a28a
call fcn.00457fe8
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 0x484d38
lea ecx, [ebp + 0xc]
call fcn.0040b7cc
test eax, eax
jl 0x4165d4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x484d34
call fcn.00401a69
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea ecx, [ebp - 0xec]
call fcn.0040ba08
mov byte [ebp - 4], 3
push dword [eax]
lea ecx, [ebp - 0x68]
call fcn.00401a69
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 0x10
jb 0x416420
mov eax, dword [eax + 4]
jmp 0x416423
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00401a69
mov byte [ebp - 4], 5
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 7
call fcn.00408911
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 0x416471
push dword [ebp - 0xec]
call fcn.00459a97
pop ecx
lea eax, [ebp - 0x24]
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042f3fe
mov ecx, eax
call fcn.00403cee
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042f3fe
mov ecx, eax
call fcn.00403d10
mov edi, eax
lea eax, [ebp - 0x44]
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042f3fe
mov ecx, eax
call fcn.00403cee
push 0x45d72c
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.00419b60
add esp, 0x20
lea eax, [ebp - 0x2f4]
push eax
xor esi, esi
push esi
push esi
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042f3fe
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004042ce
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 0x4165c9
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e1f5
mov byte [ebp - 4], 0xc
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042f3fe
push str.PROGRAMFILES
mov ecx, eax
call fcn.004038d0
test eax, eax
jne 0x416572
push esi
push 0x484d2c
lea ecx, [ebp - 0x10]
call fcn.0040b7cc
test eax, eax
jl 0x416572
push 0x481d7c
push 0x484d20
lea ecx, [ebp - 0x10]
call fcn.004191f2
lea ecx, [ebp - 0x10]
call fcn.00419982
mov ecx, eax
call fcn.004193db
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040bbb4
push 2
lea ecx, [ebp - 0x3c]
call fcn.0042f3fe
cmp dword [eax + 0x18], 0x10
jb 0x416593
mov eax, dword [eax + 4]
jmp 0x416596
add eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.0040bc4e
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
push eax
call fcn.00409112
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.004067a3
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.004017f7
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