Function at 0x4018bb
Capabilities:
Get common file path

Disassembly:
sub esp, 0x518
mov eax, dword [0x416044]
xor eax, esp
mov dword [esp + 0x514], eax
push ebx
push ebp
mov ebp, dword [esp + 0x524]
push esi
push edi
mov edi, 0x114
xor ebx, ebx
push edi
lea eax, [esp + 0x14]
push ebx
push eax
mov byte [ebp + 0xc], bl
mov dword [ebp], 0x13
call fcn.00408bd0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], edi
call esi
test eax, eax
jne 0x401707
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], edi
call esi
test eax, eax
je 0x401965
mov ecx, dword [esp + 0x20]
sub ecx, 1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
je 0x4017a4
sub ecx, 1
jne 0x4017f2
cmp edx, 4
ja 0x401737
mov dword [ebp], 0x11
cmp edx, 5
jne 0x401772
cmp eax, ebx
jne 0x40174c
mov dword [ebp], 0x12
jmp 0x4017f2
cmp eax, 1
jne 0x40175d
mov dword [ebp], 0x13
jmp 0x4017f2
cmp eax, 2
jne 0x4017f2
mov dword [ebp], 0x14
jmp 0x4017f2
cmp edx, 6
jne 0x401792
cmp eax, ebx
jne 0x401784
mov dword [ebp], 0x15
jmp 0x4017f2
cmp eax, 1
jne 0x4017f2
mov dword [ebp], 0x17
jmp 0x4017f2
cmp edx, 7
jne 0x4017f2
cmp eax, ebx
jne 0x4017f2
mov dword [ebp], 0x17
jmp 0x4017f2
mov dword [ebp], 3
cmp edx, 4
jne 0x4017d7
cmp eax, ebx
jne 0x4017bd
mov dword [ebp], 1
jmp 0x4017d7
cmp eax, 0xa
jne 0x4017cb
mov dword [ebp], 2
jmp 0x4017d7
cmp eax, 0x5a
jne 0x4017d7
mov dword [ebp], 3
mov eax, dword [esp + 0x1c]
and eax, 0xffff0000
cmp eax, 0x45a0000
jne 0x4017ee
mov dword [ebp], 3
mov byte [ebp + 0xc], 1
push 0xa
lea edx, [esp + 0x128]
push edx
push 9
xor ecx, ecx
push 0x400
mov byte [ebp + 0x630], bl
mov word [ebp + 0x734], cx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [esp + 0x124]
call fcn.00401a60
cmp eax, 0xc04
mov dword [ebp + 0x10], eax
jg 0x401859
je 0x401850
cmp eax, 0x404
je 0x401847
cmp eax, 0x804
jne 0x401877
mov dword [ebp + 0x10], 0x8c0
jmp 0x401877
mov dword [ebp + 0x10], 0x4c1
jmp 0x401877
mov dword [ebp + 0x10], 0xcc1
jmp 0x401877
cmp eax, 0x1004
je 0x401870
cmp eax, 0x1404
jne 0x401877
mov dword [ebp + 0x10], 0x14c1
jmp 0x401877
mov dword [ebp + 0x10], 0x10c0
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
and eax, 0xff
add eax, 0xfffffff8
cmp eax, 0xb9
ja case.0x401899.9
movzx eax, byte [eax + 0x4019a4]
jmp dword [eax*4 + 0x401984]
mov dword [ebp + 0x14], 0x3a4
jmp case.0x401899.9
mov dword [ebp + 0x14], 0x3a8
jmp case.0x401899.9
mov dword [ebp + 0x14], 0x3b6
jmp case.0x401899.9
mov dword [ebp + 0x14], 0x3b5
jmp case.0x401899.9
mov dword [ebp + 0x14], 0x4e3
jmp case.0x401899.9
mov dword [ebp + 0x14], 0x4e5
jmp case.0x401899.9
mov dword [ebp + 0x14], 0x4e9
push 0x104
cmp byte [ebp + 0xc], bl
je 0x401927
lea edi, [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
lea ebx, [ebp + 0x11c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp + 0x14]
lea esi, [ebp + 0x220]
mov eax, ebp
call fcn.00401bc0
mov ecx, dword [ebp + 0x14]
lea esi, [ebp + 0x428]
mov edi, ebx
mov eax, ebp
call fcn.00401bc0
jmp 0x401965
lea edi, [ebp + 0x220]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x104
lea ebx, [ebp + 0x428]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [ebp + 0x14]
lea esi, [ebp + 0x18]
mov eax, ebp
call fcn.00401b50
mov ecx, dword [ebp + 0x14]
lea esi, [ebp + 0x11c]
mov edi, ebx
mov eax, ebp
call fcn.00401b50
mov ecx, dword [esp + 0x524]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00402d86
add esp, 0x518
ret 4