Function at 0x4084e7
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.00408ae0
test eax, eax
jne 0x408543
push dword [0x423674]
jmp 0x408a95
mov edi, 0x208
mov ebx, 0x424aa0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x408567
push 0x40
push str.Cannot_find_folder.
push str.Cannot_locate_the_Windows_folder._n_nAborting_Setup.
jmp 0x408592
push ebx
call fcn.00412da0
pop ecx
push eax
call fcn.00409f44
pop ecx
mov ebx, 0x424880
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40859f
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 0x408aa4
push ebx
call fcn.00412da0
pop ecx
push eax
call fcn.00409f44
pop ecx
call fcn.004036b4
xor eax, eax
cmp dword [0x4210b0], eax
je 0x4085cc
push eax
push eax
push 0x721
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00407e03
push 1
pop esi
cmp eax, esi
jne 0x408aa4
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 0x408654
push 0x5c
push esi
call fcn.00406a32
and byte [eax + 1], 0
pop ecx
pop ecx
push 0x424aa0
call fcn.00404f35
test eax, eax
pop ecx
je 0x4088e4
push dword [0x423ae8]
call fcn.00404eec
cmp eax, 0xfffffffe
pop ecx
je 0x4088e4
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 0x40865f
push dword [0x423880]
jmp 0x408a95
lea eax, [ebp - 0x428]
push 0x2e
push eax
call fcn.00406a32
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0x428]
push 0x5c
push eax
call fcn.00406a32
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.004066b2
test eax, eax
pop ecx
jne 0x40871b
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.00403c25
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.00410f90
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.00405ec5
test eax, eax
je 0x40877b
push dword [0x42417c]
push edi
push str._s_n_n_s
push 1
pop esi
push esi
push 0x10
push esi
call fcn.0040523a
add esp, 0x18
jmp 0x408aa4
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.00412c40
pop ecx
lea eax, [ebp - 0x220]
pop ecx
push 0x41c030
push eax
call fcn.00412c50
pop ecx
lea eax, [ebp - 0x220]
pop ecx
push str.ST6UNST.EXE
push eax
call fcn.00412c50
pop ecx
lea eax, [ebp - 0x220]
pop ecx
push eax
call fcn.00407e75
test eax, eax
pop ecx
je 0x4088e4
push str.Spawn
mov edi, str.SETUP.LST
push str.BootStrap
push edi
call fcn.00405c7f
add esp, 0xc
test eax, eax
je 0x408894
push eax
push 0x4212e8
call ebx
mov esi, str.Title
push esi
push str.Setup
push edi
call fcn.00405c7f
xor edi, edi
add esp, 0xc
cmp eax, edi
je 0x408a8f
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.00403bf9
pop ecx
push eax
push esi
call fcn.00404f01
pop ecx
cmp eax, 0xfffffffe
pop ecx
jne 0x4088ec
push 1
pop esi
jmp 0x408aa4
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.00403874
add esp, 0x14
cmp dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
je 0x408aa4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 8]
push esi
push eax
push str.Setup1_Files
call fcn.00403874
add esp, 0x14
cmp dword [ebp - 4], esi
mov dword [ebp - 0xc], eax
je 0x408aa4
cmp eax, edi
jne 0x408950
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 0x408980
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push dword [ebp + 8]
push edi
push eax
push ebx
call fcn.00403874
add esp, 0x14
cmp dword [ebp - 4], esi
je 0x408aa4
cmp dword [ebp - 8], edi
je 0x4089a7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 8]
push edi
push eax
push str.Setup1_Files
call fcn.00403874
add esp, 0x14
cmp dword [ebp - 4], esi
je 0x408aa4
cmp dword [ebp + 8], edi
je 0x4089b2
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x14], edi
jne 0x408a32
cmp dword [ebp - 0xc], edi
jne 0x408a32
push dword [0x4210bc]
mov dword [ebp - 0x18], esi
call fcn.0040815c
pop ecx
push edi
push ebx
call fcn.00406c0a
pop ecx
pop ecx
push ebx
call fcn.00407720
pop ecx
push dword [0x424408]
call fcn.00404eec
cmp eax, 0xfffffffe
pop ecx
je 0x408aa4
cmp byte [0x4212e8], 0
je 0x408a0a
call fcn.0040746d
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x408aa4
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.0040523a
add esp, 0x14
xor esi, esi
jmp 0x408aa4
push dword [0x423d2c]
mov dword [0x4210c8], esi
push 0x41c25c
push esi
push 0x31
push 2
call fcn.0040523a
add esp, 0x14
cmp eax, 2
je 0x408aa4
cmp dword [ebp - 0x14], edi
je 0x408a67
push esi
push ebx
call fcn.00406c0a
pop ecx
cmp eax, esi
pop ecx
jne 0x408aa4
cmp dword [ebp - 0xc], edi
je 0x408a7d
push esi
push str.Setup1_Files
call fcn.00406c0a
pop ecx
cmp eax, esi
pop ecx
jne 0x408aa4
call fcn.0040322c
test eax, eax
je 0x408aa4
push esi
call fcn.00403794
pop ecx
jmp 0x408aa4
push dword [0x423d28]
push 1
pop esi
push esi
push 0x30
push esi
call fcn.0040523a
add esp, 0x10
call fcn.00404ea4
cmp esi, 0xffffffff
jne 0x408ab0
xor esi, esi
xor edi, edi
cmp dword [0x4210a8], edi
je 0x408ac6
xor eax, eax
cmp esi, edi
sete al
mov dword [0x4210ac], eax
cmp dword [ebp - 0x18], edi
jne 0x408acd
xor esi, esi
push esi
call fcn.00407bf1
pop ecx
push edi
call fcn.00410f90
pop ecx
pop edi
pop esi
pop ebx
leave
ret