Function at 0x4083a4
Capabilities:
Create directory
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
and byte [ebp - 0x428], 0
push ebx
push esi
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x427]
rep stosd dword es:[edi], eax
and byte [ebp - 0x630], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x62f]
rep stosd dword es:[edi], eax
and dword [ebp - 0x18], 0
and dword [ebp - 4], 0
stosw word es:[edi], ax
or esi, 0xffffffff
stosb byte es:[edi], al
call fcn.0040899d
test eax, eax
jne 0x408400
push dword [0x423674]
jmp 0x408952
mov edi, 0x208
mov ebx, 0x424aa0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x408424
push 0x40
push str.Cannot_find_folder.
push str.Cannot_locate_the_Windows_folder._n_nAborting_Setup.
jmp 0x40844f
push ebx
call fcn.00412c60
pop ecx
push eax
call fcn.00409e01
pop ecx
mov ebx, 0x424880
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40845c
push 0x40
push str.Cannot_find_folder.
push str.Cannot_locate_the_System_folder._n_nAborting_Setup.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x408961
push ebx
call fcn.00412c60
pop ecx
push eax
call fcn.00409e01
pop ecx
call fcn.00403684
xor eax, eax
cmp dword [0x4210b0], eax
je 0x408489
push eax
push eax
push 0x721
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00407cb2
push 1
pop esi
cmp eax, esi
jne 0x408961
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, 0x423d40
push edi
push esi
push 0xfffffffffffffffa
push dword [ebp + 8]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x408511
push 0x5c
push esi
call fcn.004068e1
and byte [eax + 1], 0
pop ecx
pop ecx
push 0x424aa0
call fcn.00404f05
test eax, eax
pop ecx
je 0x4087a1
push dword [0x423ae8]
call fcn.00404ebc
cmp eax, 0xfffffffe
pop ecx
je 0x4087a1
lea eax, [ebp - 0x428]
push edi
push eax
push 0xfffffffffffffffa
push dword [ebp + 8]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40851c
push dword [0x423880]
jmp 0x408952
lea eax, [ebp - 0x428]
push 0x2e
push eax
call fcn.004068e1
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0x428]
push 0x5c
push eax
call fcn.004068e1
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x630]
push eax
call ebx
push esi
mov esi, 0x424660
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x630]
push eax
push esi
call edi
push 0x41c758
push esi
call edi
push esi
call fcn.00406561
test eax, eax
pop ecx
jne 0x4085d8
and byte [ebp - 0x220], al
mov ecx, 0x81
lea edi, [ebp - 0x21f]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x41c058
push dword [0x424404]
stosb byte es:[edi], al
call fcn.00403bf5
add esp, 0xc
push eax
lea eax, [ebp - 0x220]
push 0x41c1cc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x40
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.00410e50
pop ecx
mov edi, str.SETUP.LST
push edi
push 0x423d40
push 0x41c1a4
push 0x424440
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push edi
push 0x424aa0
push 0x41c1a4
push 0x423f60
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
call fcn.00405e95
test eax, eax
je 0x408638
push dword [0x42417c]
push edi
push str._s_n_n_s
push 1
pop esi
push esi
push 0x10
push esi
call fcn.0040520a
add esp, 0x18
jmp 0x408961
mov edi, 0x4214f0
push 0x423f60
push edi
call ebx
push edi
push esi
call ebx
push esi
lea eax, [ebp - 0x220]
push 0x208
push eax
push 0
push str.TmpDir
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x423b20
push 0x423680
push edi
call ebx
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
lea eax, [ebp - 0x838]
push 0x208
push eax
push 0
push str.CabFile
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 0x424cc0
push 0x424aa0
push esi
call ebx
lea eax, [ebp - 0x838]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov al, byte [0x41fcac]
mov ecx, 0x81
mov byte [ebp - 0x220], al
xor eax, eax
lea edi, [ebp - 0x21f]
push 0x423b20
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x220]
push eax
call fcn.00412a30
pop ecx
lea eax, [ebp - 0x220]
pop ecx
push 0x41c030
push eax
call fcn.00412a40
pop ecx
lea eax, [ebp - 0x220]
pop ecx
push str.ST6UNST.EXE
push eax
call fcn.00412a40
pop ecx
lea eax, [ebp - 0x220]
pop ecx
push eax
call fcn.00407d24
test eax, eax
pop ecx
je 0x4087a1
push str.Spawn
mov edi, str.SETUP.LST
push str.BootStrap
push edi
call fcn.00405c4f
add esp, 0xc
test eax, eax
je 0x408751
push eax
push 0x4212e8
call ebx
mov esi, str.Title
push esi
push str.Setup
push edi
call fcn.00405c4f
xor edi, edi
add esp, 0xc
cmp eax, edi
je 0x40894c
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
and byte [ebp - 0x19], 0
lea eax, [ebp - 0x220]
push eax
call fcn.00403bc9
pop ecx
push eax
push esi
call fcn.00404ed1
pop ecx
cmp eax, 0xfffffffe
pop ecx
jne 0x4087a9
push 1
pop esi
jmp 0x408961
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
xor ecx, ecx
mov ebx, str.BootStrap_Files
test eax, eax
lea eax, [ebp - 0x10]
setge cl
push eax
push ecx
push 1
lea eax, [ebp - 4]
pop esi
mov dword [ebp + 8], ecx
push esi
push eax
push ebx
call fcn.00403844
add esp, 0x14
cmp dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
je 0x408961
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 8]
push esi
push eax
push str.Setup1_Files
call fcn.00403844
add esp, 0x14
cmp dword [ebp - 4], esi
mov dword [ebp - 0xc], eax
je 0x408961
cmp eax, edi
jne 0x40880d
mov dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, edi
mov dword [0x4210d4], ecx
je 0x40883d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push dword [ebp + 8]
push edi
push eax
push ebx
call fcn.00403844
add esp, 0x14
cmp dword [ebp - 4], esi
je 0x408961
cmp dword [ebp - 8], edi
je 0x408864
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 8]
push edi
push eax
push str.Setup1_Files
call fcn.00403844
add esp, 0x14
cmp dword [ebp - 4], esi
je 0x408961
cmp dword [ebp + 8], edi
je 0x40886f
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x14], edi
jne 0x4088ef
cmp dword [ebp - 0xc], edi
jne 0x4088ef
push dword [0x4210bc]
mov dword [ebp - 0x18], esi
call fcn.00408019
pop ecx
push edi
push ebx
call fcn.00406ab9
pop ecx
pop ecx
push ebx
call fcn.004075cf
pop ecx
push dword [0x424408]
call fcn.00404ebc
cmp eax, 0xfffffffe
pop ecx
je 0x408961
cmp byte [0x4212e8], 0
je 0x4088c7
call fcn.0040731c
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x408961
push edi
push dword [0x4210b4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x42365c]
push 0x41c25c
push esi
push edi
push 2
call fcn.0040520a
add esp, 0x14
xor esi, esi
jmp 0x408961
push dword [0x423d2c]
mov dword [0x4210c8], esi
push 0x41c25c
push esi
push 0x31
push 2
call fcn.0040520a
add esp, 0x14
cmp eax, 2
je 0x408961
cmp dword [ebp - 0x14], edi
je 0x408924
push esi
push ebx
call fcn.00406ab9
pop ecx
cmp eax, esi
pop ecx
jne 0x408961
cmp dword [ebp - 0xc], edi
je 0x40893a
push esi
push str.Setup1_Files
call fcn.00406ab9
pop ecx
cmp eax, esi
pop ecx
jne 0x408961
call fcn.004031fc
test eax, eax
je 0x408961
push esi
call fcn.00403764
pop ecx
jmp 0x408961
push dword [0x423d28]
push 1
pop esi
push esi
push 0x30
push esi
call fcn.0040520a
add esp, 0x10
call fcn.00404e74
cmp esi, 0xffffffff
jne 0x40896d
xor esi, esi
xor edi, edi
cmp dword [0x4210a8], edi
je 0x408983
xor eax, eax
cmp esi, edi
sete al
mov dword [0x4210ac], eax
cmp dword [ebp - 0x18], edi
jne 0x40898a
xor esi, esi
push esi
call fcn.00407aa0
pop ecx
push edi
call fcn.00410e50
pop ecx
pop edi
pop esi
pop ebx
leave
ret