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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1670
call fcn.00412d10
push ebx
push esi
mov edx, 0x81
push edi
xor ebx, ebx
mov ecx, edx
and byte [ebp - 0xe50], bl
xor eax, eax
lea edi, [ebp - 0xe4f]
and byte [ebp - 0x1058], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x1057]
or esi, 0xffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
stosb byte es:[edi], al
call fcn.00408c49
test eax, eax
jne 0x4082f4
push dword [0x42395c]
jmp 0x408bfe
lea eax, [ebp - 0x1260]
mov edi, 0x208
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40831a
push 0x40
push str.No_temp_folder.
push str.Cannot_locate_the_temp_folder._n_nAborting_Setup.
push ebx
jmp 0x40837a
lea eax, [ebp - 0x1260]
push eax
call fcn.00412de0
pop ecx
push eax
call fcn.0040a097
pop ecx
mov ebx, 0x424460
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40834d
push 0x40
push str.Cannot_find_folder.
push str.Cannot_locate_the_Windows_folder._n_nAborting_Setup.
jmp 0x408378
push ebx
call fcn.00412de0
pop ecx
push eax
call fcn.0040a097
pop ecx
mov ebx, 0x4246c0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x408385
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 0x408c0d
push ebx
call fcn.00412de0
pop ecx
push eax
call fcn.0040a097
xor eax, eax
pop ecx
cmp dword [0x421180], eax
je 0x4083ad
push eax
push eax
push 0x721
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00407b9d
push 1
pop esi
cmp eax, esi
jne 0x408c0d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, 0x423740
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 0x40867c
push 0x5c
push esi
call fcn.00406796
and byte [eax + 1], 0
pop ecx
pop ecx
push 0x424460
call fcn.00404dec
test eax, eax
pop ecx
je 0x408ad7
push dword [0x423de8]
call fcn.00404da3
cmp eax, 0xfffffffe
pop ecx
je 0x408ad7
lea eax, [ebp - 0xe50]
push edi
push eax
push 0xfffffffffffffffa
push dword [ebp + 8]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40867c
lea eax, [ebp - 0xe50]
push 0x2e
push eax
call fcn.00406796
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0xe50]
push 0x5c
push eax
call fcn.00406796
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x1058]
push eax
call edi
push esi
mov esi, 0x424b60
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1058]
push eax
push esi
call ebx
push 0x41c7e8
push esi
call ebx
push esi
call fcn.00406412
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
test eax, eax
jne 0x408504
and byte [ebp - 0x428], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x427]
rep stosd dword es:[edi], eax
push esi
push 0x41c06c
push dword [0x424b10]
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00403adc
add esp, 0xc
push eax
lea eax, [ebp - 0x428]
push 0x41c310
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x40
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.004110b0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
push str.SETUP.LST
push 0x423740
push 0x41c268
push 0x4248e0
call ebx
add esp, 0x10
push str.SETUP.LST
push 0x424460
push 0x41c268
push 0x4239c0
call ebx
add esp, 0x10
call fcn.00405dd8
test eax, eax
je 0x408563
push dword [0x424674]
push str.SETUP.LST
push str._s_n_n_s
push 1
pop esi
push esi
push 0x10
push esi
call fcn.00405105
add esp, 0x18
jmp 0x408c0d
push 0x4239c0
push 0x4215c0
call edi
push 0x4215c0
push esi
call edi
push esi
lea eax, [ebp - 0x1468]
push 0x208
push eax
push 0
push str.TmpDir
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x424240
push 0x424020
call edi
lea eax, [ebp - 0x1468]
mov edi, 0x424020
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 - 0x1670]
push 0x208
push eax
push 0
push str.CabFile
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
and byte [ebp - 0x630], 0
mov edx, 0x81
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x62f]
and byte [ebp - 0xa40], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xa3f]
and byte [ebp - 0x838], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x837]
and byte [ebp - 0x220], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x21f]
and byte [ebp - 0x428], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x427]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa40]
mov edi, 0x208
mov dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push edi
push eax
push 0xfffffffffffffffa
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408687
push dword [0x423964]
jmp 0x408bfe
lea eax, [ebp - 0x220]
push 0x5c
push eax
call fcn.00406796
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0x428]
push edi
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x1670]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x630]
push 0x41c268
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0xa40]
push edi
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x4086f1
lea eax, [ebp - 0x630]
mov dword [ebp - 4], eax
mov edi, 0x424d80
push 0x424460
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x838]
push eax
push dword [ebp - 4]
call fcn.0040a0d9
pop ecx
lea eax, [ebp - 0x838]
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
and byte [ebp - 0x220], 0
mov edx, 0x81
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x21f]
and byte [ebp - 0x838], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x837]
and byte [ebp - 0x428], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x427]
and byte [ebp - 0xc48], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xc47]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.ole32.dll_CoInitialize]
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x14], ecx
inc dword [0x421f74]
lea eax, [ebp + 8]
push 0xa
push eax
push dword [0x421f74]
call fcn.00411450
add esp, 0xc
push str.File
call fcn.00412070
pop ecx
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00412c20
pop ecx
lea eax, [ebp + 8]
pop ecx
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00412c30
pop ecx
mov edi, 0x41c310
pop ecx
push 0x4215c0
push edi
push esi
call ebx
add esp, 0xc
lea eax, [ebp - 0x630]
push esi
push 0x208
push eax
lea eax, [ebp - 0x220]
push 0
push eax
push str.BootStrap_Files
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x408790
mov ecx, dword [0x421f74]
dec ecx
test eax, eax
mov dword [0x4211a4], ecx
jne 0x408790
inc dword [0x421f78]
lea eax, [ebp + 8]
push 0xa
push eax
push dword [0x421f78]
call fcn.00411450
add esp, 0xc
push str.File
call fcn.00412070
pop ecx
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00412c20
pop ecx
lea eax, [ebp + 8]
pop ecx
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00412c30
pop ecx
pop ecx
push 0x4215c0
push edi
push esi
call ebx
add esp, 0xc
lea eax, [ebp - 0x630]
push esi
push 0x208
push eax
lea eax, [ebp - 0x220]
push 0
push eax
push str.BootStrap_Files
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4089e1
lea eax, [ebp - 0x630]
push 0x40
push eax
call fcn.00412db0
pop ecx
inc eax
pop ecx
push eax
lea eax, [ebp - 0x838]
push edi
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0xa40]
push edi
push eax
call ebx
mov al, byte [0x41a604]
add esp, 0xc
push eax
lea eax, [ebp - 0x630]
push eax
call fcn.0040677a
and byte [eax], 0
pop ecx
mov dword [ebp - 8], eax
mov al, byte [0x41a604]
pop ecx
push eax
lea eax, [ebp - 0xa40]
push eax
call fcn.0040677a
and byte [eax], 0
pop ecx
pop ecx
mov dword [ebp - 4], 2
mov al, byte [0x41a604]
push eax
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.0040677a
pop ecx
mov dword [ebp - 8], eax
test eax, eax
pop ecx
je 0x40892d
mov ecx, dword [ebp - 4]
dec dword [ebp - 4]
test ecx, ecx
jne 0x40890a
mov cl, byte [0x41a604]
inc eax
push ecx
push eax
mov dword [ebp - 8], eax
call fcn.0040677a
and byte [eax], 0
pop ecx
pop ecx
lea eax, [ebp - 0xa40]
push eax
push 0x424020
lea eax, [ebp - 0x428]
push str._s_s
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0xa40]
push eax
push edi
push 0x423be0
call ebx
mov eax, dword [0x421f78]
add esp, 0xc
mov dword [0x4211a0], eax
call fcn.00405407
push 1
push 0
push dword [0x421184]
call dword [sym.imp.USER32.dll_InvalidateRect]
call fcn.00408f8b
push 0x424d80
lea eax, [ebp - 0xc48]
push edi
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0xc48]
push eax
call fcn.00408fcd
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x4089dc
push dword [ebp - 8]
lea eax, [ebp - 0x428]
push eax
call fcn.004081a8
pop ecx
pop ecx
call fcn.00408f8b
cmp dword [ebp - 0x10], 0
jne 0x408821
cmp dword [ebp - 0x14], 0
je 0x4089f7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [0x41fd7c]
mov ecx, 0x81
mov byte [ebp - 0x220], al
xor eax, eax
lea edi, [ebp - 0x21f]
push 0x424020
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x220]
push eax
call fcn.00412c20
pop ecx
lea eax, [ebp - 0x220]
pop ecx
push 0x41c030
push eax
call fcn.00412c30
pop ecx
lea eax, [ebp - 0x220]
pop ecx
push str.ST6UNST.EXE
push eax
call fcn.00412c30
pop ecx
lea eax, [ebp - 0x220]
pop ecx
push eax
call fcn.00407c0f
test eax, eax
pop ecx
je 0x408ad7
push str.Spawn
mov edi, str.SETUP.LST
push str.BootStrap
push edi
call fcn.00405b92
add esp, 0xc
test eax, eax
je 0x408a86
push eax
push 0x4213b8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, str.Title
push esi
push str.Setup
push edi
call fcn.00405b92
add esp, 0xc
test eax, eax
je 0x408bf8
push 0x208
push eax
lea eax, [ebp - 0xc48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
and byte [ebp - 0xa41], 0
lea eax, [ebp - 0xc48]
push eax
call fcn.00403ab0
pop ecx
push eax
push esi
call fcn.00404db8
pop ecx
cmp eax, 0xfffffffe
pop ecx
jne 0x408adf
push 1
pop esi
jmp 0x408c0d
lea eax, [ebp - 0xc]
mov edi, str.BootStrap_Files
push eax
push edi
call fcn.004037b3
pop ecx
mov dword [ebp + 8], eax
pop ecx
push 1
pop esi
cmp dword [ebp - 0xc], esi
je 0x408c0d
lea eax, [ebp - 0xc]
mov ebx, str.Setup1_Files
push eax
push ebx
call fcn.004037b3
cmp dword [ebp - 0xc], esi
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
je 0x408c0d
cmp dword [ebp + 8], 0
jne 0x408b9d
test eax, eax
jne 0x408b9d
push dword [0x42118c]
mov dword [ebp - 0x18], esi
call fcn.00407f03
pop ecx
xor ebx, ebx
push ebx
push edi
call fcn.0040696e
pop ecx
pop ecx
push edi
call fcn.004074c3
pop ecx
push dword [0x424b14]
call fcn.00404da3
cmp eax, 0xfffffffe
pop ecx
je 0x408c0d
cmp byte [0x4213b8], bl
je 0x408b75
call fcn.0040723b
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x408c0d
push ebx
push dword [0x421184]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x423734]
push 0x41c30c
push esi
push ebx
push 2
call fcn.00405105
add esp, 0x14
xor esi, esi
jmp 0x408c0d
push dword [0x42422c]
mov dword [0x421198], esi
push 0x41c30c
push esi
push 0x31
push 2
call fcn.00405105
add esp, 0x14
cmp eax, 2
je 0x408c0d
cmp dword [ebp + 8], 0
je 0x408bd3
push esi
push edi
call fcn.0040696e
pop ecx
cmp eax, esi
pop ecx
jne 0x408c0d
cmp dword [ebp - 0x10], 0
je 0x408be6
push esi
push ebx
call fcn.0040696e
pop ecx
cmp eax, esi
pop ecx
jne 0x408c0d
call fcn.00403281
test eax, eax
je 0x408c0d
push esi
call fcn.004036d3
pop ecx
jmp 0x408c0d
push dword [0x424228]
push 1
pop esi
push esi
push 0x30
push esi
call fcn.00405105
add esp, 0x10
call fcn.00404d5b
cmp esi, 0xffffffff
jne 0x408c19
xor esi, esi
xor edi, edi
cmp dword [0x421178], edi
je 0x408c2f
xor eax, eax
cmp esi, edi
sete al
mov dword [0x42117c], eax
cmp dword [ebp - 0x18], edi
jne 0x408c36
xor esi, esi
push esi
call fcn.00407984
pop ecx
push edi
call fcn.004110b0
pop ecx
pop edi
pop esi
pop ebx
leave
ret