Function at 0x403db2
Capabilities:
Check if file exists
Create directory
Query or enumerate registry value

Disassembly:
mov eax, 0x421467
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x67c
push ebx
push esi
push edi
mov ebx, ecx
push 0x54
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x403de4
mov ecx, eax
call fcn.00407e80
jmp 0x403de6
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x38
mov dword [ebx + 0x1c8], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, esi
mov dword [ebp - 4], 1
je 0x403e11
mov ecx, eax
call fcn.0040acca
mov edi, eax
jmp 0x403e13
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 0x1d8]
call fcn.00405708
push dword [eax]
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.0040ad7a
neg al
sbb al, al
or dword [ebp - 4], 0xffffffff
inc al
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x11], al
call sub.MFC42.DLL_CString::CString
cmp byte [ebp - 0x11], 0
je 0x403e62
push esi
push esi
push 0x42d264
call sub.MFC42.DLL_AfxMessageBox
jmp 0x403f0e
push 8
mov dword [ebx + 0x1cc], edi
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, esi
mov dword [ebp - 4], 3
je 0x403e8e
lea ecx, [ebx + 0x178]
push ecx
mov ecx, eax
call fcn.00405467
jmp 0x403e90
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x1d0], eax
mov eax, dword [edi + 0x34]
cmp dword [eax + 0x34], 1
jbe 0x403f32
push esi
lea ecx, [ebp - 0x688]
call fcn.00402845
mov edi, dword [edi + 0x34]
lea ecx, [ebp - 0x158]
add edi, 0x14
mov dword [ebp - 4], 4
push edi
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x688]
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 2
je 0x403eff
mov eax, dword [ebx + 0xcc]
mov ecx, dword [ebx + 0x1cc]
push dword [eax]
call fcn.0040af47
test al, al
jne 0x403f15
push esi
push esi
push 0x42d264
call sub.MFC42.DLL_AfxMessageBox
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x688]
call fcn.004028dc
xor al, al
jmp 0x40434d
push 1
push esi
lea ecx, [ebx + 0xc8]
call sub.MFC42.DLL_CStringArray::RemoveAt
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x688]
call fcn.004028dc
and byte [ebp - 0x154], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x153]
mov dword [ebp - 0x34], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], 1
push eax
push 0x20019
push esi
push str.SoftwareKiller
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x403fce
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x40]
push eax
push esi
push str.FullPath
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
jne 0x403fce
lea eax, [ebp - 0x154]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
dec eax
cmp eax, esi
jle 0x403fbb
cmp byte [ebp + eax - 0x154], 0x5c
jne 0x403fa4
and byte [ebp + eax - 0x154], 0
lea eax, [ebp - 0x154]
push str.SetupMafia_Install.xml
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov eax, dword [ebx + 0x1cc]
lea ecx, [ebp - 0x30]
mov eax, dword [eax + 0x34]
add eax, 0x20
push eax
call fcn.0041817c
push 0x42d168
push str..exe
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 5
call sub.MFC42.DLL_CString::Replace
lea eax, [ebp - 0x38]
push 0x42d240
push eax
mov ecx, 0x431388
call fcn.004091d9
lea eax, [ebp - 0x154]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
mov dword [ebp - 0x2c], esi
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x28]
mov byte [ebp - 4], 8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4041ae
mov dword [ebp - 0x1c], esi
push 7
push esi
push 0x42d230
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.004054e7
cmp eax, esi
jl 0x40419b
push dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.004043e7
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xa
call fcn.004044ce
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xb
cmp eax, esi
jne 0x404095
push 0x80004003
call fcn.004187b0
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x12]
lea esi, [ebp - 0x50]
push edx
mov ecx, dword [eax]
sub esp, 0x10
mov dword [ebp - 0x20], eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
test eax, eax
jge 0x4040c3
push 0x42d220
push dword [ebp - 0x20]
push eax
call fcn.004187be
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0xa
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4040db
push eax
call fcn.004187b0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x4040eb
call fcn.00404481
cmp word [ebp - 0x12], 0xffff
jne 0x404199
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str._Glsetup2_Directorys_Directory
call fcn.004043e7
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 9
call fcn.0040abfd
mov ecx, eax
call fcn.00404520
push str.Name
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call fcn.0040abfd
mov ecx, eax
call fcn.004045bc
push ecx
dec eax
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040abfd
mov ecx, eax
call fcn.00404587
lea eax, [ebp - 0x18]
push eax
call fcn.0040a021
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 0x1cc]
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 9
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x404199
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 8
cmp eax, esi
je 0x4041d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4041d0
mov eax, dword [ebx + 0x1cc]
push str.C:Program_filesOurgameMafia
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x2c], esi
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x24], eax
call sub.MFC42.DLL_CString::operator_1
mov dword [ebp - 0x20], esi
cmp dword [ebx + 0x200], esi
je 0x40435c
push 0x284
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
mov byte [ebp - 4], 0xf
je 0x404209
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00401e95
jmp 0x40420b
xor eax, eax
push 0xfa4
mov byte [ebp - 4], 8
mov dword [ebx + 0x174], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
mov byte [ebp - 4], 0x10
je 0x40423a
push dword [ebx + 0x174]
mov ecx, eax
call fcn.00405a37
jmp 0x40423c
xor eax, eax
mov dword [ebx + 0xf0], eax
mov eax, dword [ebx + 0x174]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x1cc]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
mov eax, dword [eax + 0x34]
add eax, 0x18
push eax
call fcn.0041817c
mov eax, dword [ebx + 0x1cc]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x11
mov eax, dword [eax + 0x34]
add eax, 0x1c
push eax
call fcn.0041817c
mov eax, dword [ebx + 0x1cc]
mov byte [ebp - 4], 0x12
mov ecx, dword [eax + 0x34]
lea eax, [ebp - 0x18]
push eax
call fcn.00409681
mov ecx, dword [ebx + 0xf0]
push eax
add ecx, 0x774
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 0x1cc]
mov ecx, dword [eax + 0x34]
mov eax, dword [ebx + 0xf0]
add eax, 0x64
push eax
call fcn.004097a0
push dword [ebp - 0x2c]
mov ecx, dword [ebx + 0xf0]
push dword [ebp - 0x24]
mov dword [ecx + 0x60], eax
mov eax, ebx
lea ecx, [ebx + 0xc4]
push dword [ebp - 0x20]
neg eax
push dword [ebp - 0x10]
sbb eax, eax
push esi
and eax, ecx
push dword [ebp - 0x1c]
mov ecx, dword [ebx + 0xf0]
push dword [ebp - 0x14]
push eax
call fcn.004066c2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push dword [ebp - 0x10]
mov ecx, 0x431388
call fcn.00409266
push dword [ebp - 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
call esi
test eax, eax
jne 0x40431b
mov eax, dword [ebp - 0x10]
push 0
mov eax, dword [eax - 8]
mov dword [ebp - 0x20], eax
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
mov edi, eax
test edi, edi
jl 0x40431b
lea eax, [ebp - 0x24]
push edi
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Left
push dword [eax]
call esi
mov ebx, eax
lea ecx, [ebp - 0x24]
neg ebx
sbb bl, bl
inc bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4043d8
lea eax, [ebp - 0x18]
push edi
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
lea eax, [edi + 1]
cmp eax, dword [ebp - 0x20]
jge 0x40431b
push eax
jmp 0x404383