Function at 0x401abd
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x428d90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00420cff
lea ebp, [esi + 0x40]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x1b0], ebx
call fcn.004212b9
lea edi, [esi + 0x50]
mov dword [edi + 4], ebx
mov dword [edi], 0x42a758
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], vtable.CBrush.0
push 0x401d90
push 0x401d40
push 0x18
lea eax, [esi + 0x6c]
push 0x38
push eax
mov byte [esp + 0x1c4], 3
call fcn.00409ad0
push 1
lea ecx, [esi + 0x6ac]
mov byte [esp + 0x1b4], 4
call fcn.00416010
push ebx
lea ecx, [esi + 0xc14]
mov byte [esp + 0x1b4], 5
call fcn.00408b90
or eax, 0xffffffff
mov byte [esp + 0x1b0], 6
mov dword [esi], 0x42a648
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], eax
call fcn.00427660
mov eax, dword [eax + 0xc]
push 0x82
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call fcn.00421a44
cmp eax, ebx
je 0x401b9a
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebp
call fcn.00421383
cmp eax, ebx
je 0x401b9a
cmp edi, ebx
jne 0x401b8d
xor edi, edi
jmp 0x401b90
mov edi, dword [edi + 4]
mov ecx, dword [esi + 0x44]
push edi
push ecx
call fcn.004214be
call fcn.00427660
call fcn.00427660
mov eax, dword [eax + 0xc]
push 0x83
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
lea edi, [esi + 0x810]
push 0x40
push edi
push ebx
mov dword [esi + 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push edi
mov byte [eax + esi + 0x810], bl
call fcn.00409950
add esp, 8
cmp eax, ebx
je 0x401bdf
mov byte [eax + 1], bl
lea ebp, [esi + 0x710]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.SETUP.LST
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esi + 0xa10]
push 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [eax + esi + 0xa0f], 0x5c
je 0x401c21
mov byte [eax + esi + 0xa10], 0x5c
mov byte [eax + esi + 0xa11], bl
lea edx, [esi + 0xb10]
push 0x40
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [eax + esi + 0xb0f], 0x5c
je 0x401c49
mov byte [eax + esi + 0xb10], 0x5c
mov byte [eax + esi + 0xb11], bl
lea ebp, [esi + 0x910]
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
cmp edi, ebx
jbe 0x401ca2
cmp byte [edi + esi + 0x90f], 0x5c
je 0x401c77
mov byte [edi + esi + 0x910], 0x5c
mov byte [edi + esi + 0x911], bl
lea eax, [esp + 0xa8]
push eax
push ebx
push 0x43221c
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edi, eax
cmp edi, ebx
je 0x401ca2
lea ecx, [esp + 0xa8]
push ecx
call fcn.00409aa0
add esp, 4
cmp edi, 1
jae 0x401cd4
lea eax, [esi + 0xa10]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.TEMP
push ebp
call edi
push ebp
call fcn.00417830
add esp, 4
push 0x432210
push ebp
call edi
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
jne 0x401cfa
mov dword [esi + 0xc10], 1
jmp 0x401d00
mov dword [esi + 0xc10], ebx
mov ecx, dword [esp + 0x1a8]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1a4
ret