Function at 0x401abd
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x429e10
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.00421d7c
lea ebp, [esi + 0x44]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x1b0], ebx
call fcn.00422336
lea edi, [esi + 0x54]
mov dword [edi + 4], ebx
mov dword [edi], 0x42c758
mov dword [esi + 0x60], ebx
mov dword [esi + 0x5c], vtable.CBrush.0
push 0x401d90
push 0x401d40
push 0x18
lea eax, [esi + 0x70]
push 0x38
push eax
mov byte [esp + 0x1c4], 3
call fcn.0040a400
push 1
lea ecx, [esi + 0x6b0]
mov byte [esp + 0x1b4], 4
call fcn.00416f60
push ebx
lea ecx, [esi + 0xc18]
mov byte [esp + 0x1b4], 5
call fcn.00408f10
or eax, 0xffffffff
mov byte [esp + 0x1b0], 6
mov dword [esi], 0x42c648
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x40], ebx
call fcn.004286dd
mov eax, dword [eax + 0xc]
push 0x82
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call fcn.00422ac1
cmp eax, ebx
je 0x401b9d
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebp
call fcn.00422400
cmp eax, ebx
je 0x401b9d
cmp edi, ebx
jne 0x401b90
xor edi, edi
jmp 0x401b93
mov edi, dword [edi + 4]
mov ecx, dword [esi + 0x48]
push edi
push ecx
call fcn.0042253b
call fcn.004286dd
call fcn.004286dd
mov eax, dword [eax + 0xc]
push 0x83
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
lea edi, [esi + 0x814]
push 0x40
push edi
push ebx
mov dword [esi + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push edi
mov byte [eax + esi + 0x814], bl
call fcn.0040a260
add esp, 8
cmp eax, ebx
je 0x401be2
mov byte [eax + 1], bl
lea ebp, [esi + 0x714]
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 + 0xa14]
push 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [eax + esi + 0xa13], 0x5c
je 0x401c24
mov byte [eax + esi + 0xa14], 0x5c
mov byte [eax + esi + 0xa15], bl
lea edx, [esi + 0xb14]
push 0x40
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [eax + esi + 0xb13], 0x5c
je 0x401c4c
mov byte [eax + esi + 0xb14], 0x5c
mov byte [eax + esi + 0xb15], bl
lea ebp, [esi + 0x914]
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
cmp edi, ebx
jbe 0x401ca5
cmp byte [edi + esi + 0x913], 0x5c
je 0x401c7a
mov byte [edi + esi + 0x914], 0x5c
mov byte [edi + esi + 0x915], bl
lea eax, [esp + 0xa8]
push eax
push ebx
push 0x434208
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edi, eax
cmp edi, ebx
je 0x401ca5
lea ecx, [esp + 0xa8]
push ecx
call fcn.0040a3d0
add esp, 4
cmp edi, 1
jae 0x401cd7
lea eax, [esi + 0xa14]
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.00418780
add esp, 4
push 0x4341fc
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 0x401cfd
mov dword [esi + 0xc14], 1
jmp 0x401d03
mov dword [esi + 0xc14], 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