Function at 0x401a5d
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x426d40
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.0041ecb0
lea ebp, [esi + 0x40]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x1b0], ebx
call fcn.0041f26a
lea edi, [esi + 0x50]
mov dword [edi + 4], ebx
mov dword [edi], 0x428760
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], vtable.CBrush.0
push 0x401d30
push 0x401ce0
push 0x15
lea eax, [esi + 0x6c]
push 0x34
push eax
mov byte [esp + 0x1c4], 3
call fcn.00407a20
push 1
lea ecx, [esi + 0x690]
mov byte [esp + 0x1b4], 4
call fcn.00413f40
push ebx
lea ecx, [esi + 0xbf8]
mov byte [esp + 0x1b4], 5
call fcn.00406b60
or eax, 0xffffffff
mov byte [esp + 0x1b0], 6
mov dword [esi], 0x428650
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], eax
call fcn.00425611
mov eax, dword [eax + 0xc]
push 0x83
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call fcn.0041f9f5
cmp eax, ebx
je 0x401b3a
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebp
call fcn.0041f334
cmp eax, ebx
je 0x401b3a
cmp edi, ebx
jne 0x401b2d
xor edi, edi
jmp 0x401b30
mov edi, dword [edi + 4]
mov ecx, dword [esi + 0x44]
push edi
push ecx
call fcn.0041f46f
call fcn.00425611
call fcn.00425611
mov eax, dword [eax + 0xc]
push 0x83
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
lea edi, [esi + 0x7f4]
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 + 0x7f4], bl
call fcn.00407880
add esp, 8
cmp eax, ebx
je 0x401b7f
mov byte [eax + 1], bl
lea ebp, [esi + 0x6f4]
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 + 0x9f4]
push 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [eax + esi + 0x9f3], 0x5c
je 0x401bc1
mov byte [eax + esi + 0x9f4], 0x5c
mov byte [eax + esi + 0x9f5], bl
lea edx, [esi + 0xaf4]
push 0x40
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [eax + esi + 0xaf3], 0x5c
je 0x401be9
mov byte [eax + esi + 0xaf4], 0x5c
mov byte [eax + esi + 0xaf5], bl
lea ebp, [esi + 0x8f4]
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
cmp edi, ebx
jbe 0x401c42
cmp byte [edi + esi + 0x8f3], 0x5c
je 0x401c17
mov byte [edi + esi + 0x8f4], 0x5c
mov byte [edi + esi + 0x8f5], bl
lea eax, [esp + 0xa8]
push eax
push ebx
push 0x43020c
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edi, eax
cmp edi, ebx
je 0x401c42
lea ecx, [esp + 0xa8]
push ecx
call fcn.004079f0
add esp, 4
cmp edi, 1
jae 0x401c74
lea eax, [esi + 0x9f4]
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.00415760
add esp, 4
push 0x430200
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 0x401c9a
mov dword [esi + 0xbf4], 1
jmp 0x401ca0
mov dword [esi + 0xbf4], 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