Function at 0x404944
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.main
push eax
call fcn.004067d3
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x110], edi
test edi, edi
je 0x404a68
push 1
push edi
push str.StopIfNotExist
call fcn.0040a025
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x4049e0
push esi
push 0x42d420
call fcn.004056a0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4049d1
push esi
lea eax, [ebp - 0x104]
push 0x422824
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call fcn.00406fca
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x404a68
push 1
push edi
push str.Mode
call fcn.0040a025
add esp, 0xc
mov dword [0x42d230], eax
cmp eax, 0xffffffff
je 0x404a11
push 0x422bd0
push eax
call fcn.00410200
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [0x42d6c0], eax
push 2
pop ebx
push ebx
push edi
push str.UseCroInfo
call fcn.0040a025
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x404a9f
cmp esi, 1
jne 0x404a79
call fcn.0040470c
test eax, eax
je 0x404a52
cmp dword [0x42d6c0], 0
jne 0x404a99
cmp dword [0x42d3e4], ebx
sbb eax, eax
add eax, ebx
mov dword [0x42d368], eax
jmp 0x404a99
push 0
push 0x422924
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call fcn.00406fca
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e67e
leave
ret
cmp esi, ebx
jne 0x404a99
push 0
push 0x42d3e0
call fcn.004047e7
pop ecx
pop ecx
test eax, eax
je 0x404a68
mov dword [0x42d368], 3
mov dword [0x42d23c], esi
mov eax, dword [0x42d528]
test eax, eax
je 0x404aad
mov dword [0x42d3e8], eax
push ebx
push edi
push str.MergeCroInfo
call fcn.0040a025
dec eax
neg eax
push 1
sbb eax, eax
inc eax
push edi
push str.Title
mov dword [0x42d240], eax
call fcn.0040a025
add esp, 0x18
cmp eax, 0xffffffff
je 0x404ade
mov dword [0x42d220], eax
push 1
push edi
push str.SubTitle
call fcn.0040a025
add esp, 0xc
cmp eax, 0xffffffff
je 0x404af8
mov dword [0x42d224], eax
push 1
push edi
push str.SetupFolder
call fcn.0040a025
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add esp, 0xc
mov dword [0x42d228], eax
cmp eax, 0xffffffff
jne 0x404b50
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0x40
call ebx
lea ecx, [ebp - 0x104]
push ecx
push eax
mov dword [0x42d228], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x42d228]
call fcn.00406fb7
xor esi, esi
inc esi
push esi
push edi
push str.OldTitle
call fcn.0040a025
add esp, 0x10
mov dword [0x42d244], eax
cmp eax, 0xffffffff
jne 0x404b7e
and dword [0x42d244], 0
push esi
push edi
push str.Name
call fcn.0040a025
add esp, 0xc
mov dword [0x42d248], eax
cmp eax, 0xffffffff
jne 0x404bbb
push dword [0x42d220]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0x40
call ebx
push dword [0x42d220]
mov dword [0x42d248], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
push str.Caption
call fcn.0040a025
add esp, 0xc
mov dword [0x42d22c], eax
cmp eax, 0xffffffff
jne 0x404bdb
and dword [0x42d22c], 0
push esi
push edi
push str.LogoBitmap
call fcn.0040a025
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x404c04
push esi
call fcn.004045bb
pop ecx
push esi
mov dword [0x42d234], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 2
push edi
push str.SetupSteps
call fcn.0040a025
add esp, 0xc
mov dword [0x42d238], eax
cmp eax, 0xffffffff
je 0x404a68
test eax, eax
jne 0x404c53
mov dword [0x42d564], 0xcc
mov dword [0x42d544], 0x422a90
mov dword [0x42d584], 0x403ab8
mov dword [0x42d540], 1
jmp 0x404d87
xor ecx, ecx
inc ecx
mov dword [ebp - 0x10c], ecx
cmp eax, ecx
jb 0x404d87
jmp 0x404c6c
mov edi, dword [ebp - 0x110]
push dword [ebp - 0x10c]
lea eax, [ebp - 0x104]
push str.SetupStepType_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 1
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.0040a025
mov edi, eax
add esp, 0x18
mov dword [ebp - 0x114], edi
cmp edi, 0xffffffff
je 0x404d6f
and dword [ebp - 0x108], 0
cmp dword [ebp - 0x108], 6
jne 0x404cf5
cmp byte [edi], 0
mov esi, edi
je 0x404cc9
cmp byte [esi], 0x2c
je 0x404cce
inc esi
cmp byte [esi], 0
jne 0x404cbe
cmp byte [esi], 0x2c
jne 0x404cf5
mov byte [esi], 0
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0x40
call ebx
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [0x42b184], edi
mov edi, dword [ebp - 0x114]
mov eax, dword [ebp - 0x108]
shl eax, 4
push dword [eax + 0x42b120]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x404d20
inc dword [ebp - 0x108]
cmp dword [ebp - 0x108], 0xa
jb 0x404cae
jmp 0x404d68
mov eax, dword [ebp - 0x108]
mov edx, dword [0x42d540]
shl eax, 4
mov ecx, dword [eax + 0x42b128]
mov dword [edx*4 + 0x42d564], ecx
mov ecx, dword [eax + 0x42b124]
mov edx, dword [0x42d540]
mov eax, dword [eax + 0x42b12c]
mov dword [edx*4 + 0x42d544], ecx
mov ecx, dword [0x42d540]
mov dword [ecx*4 + 0x42d584], eax
inc dword [0x42d540]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc dword [ebp - 0x10c]
mov eax, dword [ebp - 0x10c]
cmp eax, dword [0x42d238]
jbe 0x404c66
xor eax, eax
inc eax
jmp 0x404a6a