Function at 0x40853d
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.00408b36
test eax, eax
jne 0x408599
push dword [0x423674]
jmp 0x408aeb
mov edi, 0x208
mov ebx, 0x424aa0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4085bd
push 0x40
push str.Cannot_find_folder.
push str.Cannot_locate_the_Windows_folder._n_nAborting_Setup.
jmp 0x4085e8
push ebx
call fcn.00412e00
pop ecx
push eax
call fcn.00409f9a
pop ecx
mov ebx, 0x424880
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4085f5
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 0x408afa
push ebx
call fcn.00412e00
pop ecx
push eax
call fcn.00409f9a
pop ecx
call fcn.0040370a
xor eax, eax
cmp dword [0x4210b0], eax
je 0x408622
push eax
push eax
push 0x721
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00407e59
push 1
pop esi
cmp eax, esi
jne 0x408afa
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 0x4086aa
push 0x5c
push esi
call fcn.00406a88
and byte [eax + 1], 0
pop ecx
pop ecx
push 0x424aa0
call fcn.00404f8b
test eax, eax
pop ecx
je 0x40893a
push dword [0x423ae8]
call fcn.00404f42
cmp eax, 0xfffffffe
pop ecx
je 0x40893a
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 0x4086b5
push dword [0x423880]
jmp 0x408aeb
lea eax, [ebp - 0x428]
push 0x2e
push eax
call fcn.00406a88
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0x428]
push 0x5c
push eax
call fcn.00406a88
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.00406708
test eax, eax
pop ecx
jne 0x408771
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 int.00403c7b
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.00410ff0
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.00405f1b
test eax, eax
je 0x4087d1
push dword [0x42417c]
push edi
push str._s_n_n_s
push 1
pop esi
push esi
push 0x10
push esi
call fcn.00405290
add esp, 0x18
jmp 0x408afa
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.00412ca0
pop ecx
lea eax, [ebp - 0x220]
pop ecx
push 0x41c030
push eax
call fcn.00412cb0
pop ecx
lea eax, [ebp - 0x220]
pop ecx
push str.ST6UNST.EXE
push eax
call fcn.00412cb0
pop ecx
lea eax, [ebp - 0x220]
pop ecx
push eax
call fcn.00407ecb
test eax, eax
pop ecx
je 0x40893a
push str.Spawn
mov edi, str.SETUP.LST
push str.BootStrap
push edi
call fcn.00405cd5
add esp, 0xc
test eax, eax
je 0x4088ea
push eax
push 0x4212e8
call ebx
mov esi, str.Title
push esi
push str.Setup
push edi
call fcn.00405cd5
xor edi, edi
add esp, 0xc
cmp eax, edi
je 0x408ae5
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.00403c4f
pop ecx
push eax
push esi
call fcn.00404f57
pop ecx
cmp eax, 0xfffffffe
pop ecx
jne 0x408942
push 1
pop esi
jmp 0x408afa
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.004038ca
add esp, 0x14
cmp dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
je 0x408afa
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 8]
push esi
push eax
push str.Setup1_Files
call fcn.004038ca
add esp, 0x14
cmp dword [ebp - 4], esi
mov dword [ebp - 0xc], eax
je 0x408afa
cmp eax, edi
jne 0x4089a6
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 0x4089d6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push dword [ebp + 8]
push edi
push eax
push ebx
call fcn.004038ca
add esp, 0x14
cmp dword [ebp - 4], esi
je 0x408afa
cmp dword [ebp - 8], edi
je 0x4089fd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 8]
push edi
push eax
push str.Setup1_Files
call fcn.004038ca
add esp, 0x14
cmp dword [ebp - 4], esi
je 0x408afa
cmp dword [ebp + 8], edi
je 0x408a08
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x14], edi
jne 0x408a88
cmp dword [ebp - 0xc], edi
jne 0x408a88
push dword [0x4210bc]
mov dword [ebp - 0x18], esi
call fcn.004081b2
pop ecx
push edi
push ebx
call fcn.00406c60
pop ecx
pop ecx
push ebx
call fcn.00407776
pop ecx
push dword [0x424408]
call fcn.00404f42
cmp eax, 0xfffffffe
pop ecx
je 0x408afa
cmp byte [0x4212e8], 0
je 0x408a60
call fcn.004074c3
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x408afa
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.00405290
add esp, 0x14
xor esi, esi
jmp 0x408afa
push dword [0x423d2c]
mov dword [0x4210c8], esi
push 0x41c25c
push esi
push 0x31
push 2
call fcn.00405290
add esp, 0x14
cmp eax, 2
je 0x408afa
cmp dword [ebp - 0x14], edi
je 0x408abd
push esi
push ebx
call fcn.00406c60
pop ecx
cmp eax, esi
pop ecx
jne 0x408afa
cmp dword [ebp - 0xc], edi
je 0x408ad3
push esi
push str.Setup1_Files
call fcn.00406c60
pop ecx
cmp eax, esi
pop ecx
jne 0x408afa
call fcn.00403282
test eax, eax
je 0x408afa
push esi
call fcn.004037ea
pop ecx
jmp 0x408afa
push dword [0x423d28]
push 1
pop esi
push esi
push 0x30
push esi
call fcn.00405290
add esp, 0x10
call fcn.00404efa
cmp esi, 0xffffffff
jne 0x408b06
xor esi, esi
xor edi, edi
cmp dword [0x4210a8], edi
je 0x408b1c
xor eax, eax
cmp esi, edi
sete al
mov dword [0x4210ac], eax
cmp dword [ebp - 0x18], edi
jne 0x408b23
xor esi, esi
push esi
call fcn.00407c47
pop ecx
push edi
call fcn.00410ff0
pop ecx
pop edi
pop esi
pop ebx
leave
ret