Function at 0x401000
Capabilities:
Create process on windows
Read .ini file

Disassembly:
mov eax, 0x1068
call fcn.00401370
mov ecx, dword [esp + 0x106c]
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0xc78]
push 0x400
push eax
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0xc78]
lea eax, [esp + 0x68]
push edx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x68]
push ecx
call esi
dec eax
js 0x40105d
cmp byte [esp + eax + 0x68], 0x5c
je 0x4010d4
dec eax
jns 0x401053
mov ebp, dword [esp + 0x10]
and ebp, 0xffff
cmp byte [esp + ebp + 0x773], 0x5c
jne 0x401124
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x774]
push str.Brinst.ini
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x774]
push ecx
lea edx, [esp + 0x570]
push 0x104
push edx
push str.InstDataName
push str.InstDataName
push str.Installer
call edi
lea eax, [esp + 0x56c]
lea ecx, [esp + 0x68]
push eax
push ecx
call esi
lea edx, [esp + 0x68]
push str.Disk
push edx
jmp 0x40118a
mov byte [esp + eax + 0x69], 0
lea edx, [esp + 0x68]
lea eax, [esp + 0x774]
push edx
push eax
call ebx
lea ecx, [esp + 0x774]
push ecx
call esi
lea edx, [esp + 0x68]
mov ebp, eax
push edx
call esi
sub eax, 2
js 0x401061
cmp byte [esp + eax + 0x68], 0x5c
jne 0x401112
cmp edi, 1
jne 0x40111a
xor edi, edi
dec eax
jns 0x401104
jmp 0x401061
mov byte [esp + eax + 0x69], 0
jmp 0x401061
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x774]
push 0x4060a8
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x774]
push ecx
lea edx, [esp + 0x570]
push 0x104
push edx
push str.WebDataName
push str.WebDataName
push str.Installer
call edi
lea eax, [esp + 0x68]
push 0x406098
push eax
call esi
lea ecx, [esp + 0x56c]
lea edx, [esp + 0x68]
push ecx
push edx
call esi
lea eax, [esp + 0x68]
push str.Disk
push eax
call esi
lea ecx, [esp + 0x774]
lea edx, [esp + 0xb74]
push ecx
push 0x104
push edx
push str.SetupDisk
push str.SetupDisk
push str.Installer
call edi
lea eax, [esp + 0xb74]
lea ecx, [esp + 0x68]
push eax
push ecx
call esi
lea edx, [esp + 0x68]
push 0x406080
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [esp + 0x774]
push eax
push 0
push str.LangID
push str.Installer
call edi
lea ecx, [esp + 0x670]
lea edx, [esp + 0x68]
push ecx
push edx
push eax
call fcn.00401320
add esp, 0xc
lea eax, [esp + 0x774]
push eax
push 0
push str.ByteCode
push str.Installer
call edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
cmp byte [esp + 0x68], 0x22
je 0x401275
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x468]
push 0x406068
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push ecx
call ebx
lea edx, [esp + 0x68]
lea eax, [esp + 0x468]
push edx
push eax
call esi
lea ecx, [esp + 0x468]
push 0x406068
push ecx
call esi
lea edx, [esp + 0x468]
lea eax, [esp + 0x68]
push edx
push eax
call ebx
lea ecx, [esp + 0x68]
push 0x406064
push ecx
call esi
lea edx, [esp + 0x670]
lea eax, [esp + 0x68]
push edx
push eax
call esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0x84]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
jne 0x4012fb
lea ecx, [esp + 0x58]
lea edx, [esp + 0x660]
push ecx
push str.Cannot_start_Application_Installer.___s_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x660]
push 0
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x1068
ret 0x10
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x1068
ret 0x10