Function at 0x401ce2
Capabilities:
Create directory
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xee4
mov eax, dword [0x419054]
xor eax, esp
mov dword [esp + 0xee0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x30
pop esi
push esi
mov dword [0x41abb4], eax
xor ebx, ebx
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.004064a0
add esp, 0xc
lea eax, [esp + 0x24]
mov dword [esp + 0x24], esi
push eax
mov esi, str.PlainClass
push esi
push dword [0x41abb4]
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x401dad
mov eax, dword [0x41abb4]
push 0x7f00
push ebx
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], 0x4017a3
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x401dad
push ebx
push str.Error
push str.Failed_to_register_class
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402239
push ebx
push dword [0x41abb4]
mov eax, 0x190
push ebx
push ebx
push eax
push eax
mov eax, 0x80000000
push eax
push eax
push eax
push str.Installing...
push esi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
push ebx
cmp edi, ebx
jne 0x401de5
push str.Error
push str.Failed_to_create_window
jmp 0x401da1
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xa
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x401e1f
push ebx
push str.Error
push str.Payload_not_present
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402232
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x401e44
push ebx
push str.Error
push str.Couldnt_find_payload
jmp 0x401e13
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
jne 0x401e5c
push ebx
push str.Error
push str.Couldnt_lock_payload
jmp 0x401e13
push dword [esp + 0x10]
push eax
call fcn.00405aeb
mov esi, eax
pop ecx
pop ecx
mov dword [esp + 0x14], esi
cmp esi, ebx
jne 0x401e7f
push ebx
push str.Error
push str.Couldnt_figure_out_payload
jmp 0x401e13
push 0xffffffffffffffff
lea ebx, [esp + 0x94]
mov eax, esi
call fcn.00405b42
xor ebx, ebx
pop ecx
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x401eaf
call fcn.00405b6d
push ebx
push str.Error
push str.Payload_malformed
jmp 0x401e13
mov eax, dword [esp + 0x90]
cmp eax, ebx
mov dword [esp + 0x10], eax
jg 0x401ed3
call fcn.00405b6d
push ebx
push str.Error
push str.Empty_payload
jmp 0x401e13
push esi
call fcn.00401ab8
pop ecx
test al, al
je 0x401f16
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x35
push str.Error___Close_Down_Programs
push str.Please_close_down_all_Screaming_Bee_programs_before_installing.
push edi
call esi
cmp eax, 2
je 0x401f08
push dword [esp + 0x14]
call fcn.00401ab8
pop ecx
test al, al
jne 0x401ede
jmp 0x401f1c
mov esi, dword [esp + 0x14]
call fcn.00405b6d
jmp 0x402232
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00401c30
lea eax, [esp + 0x4d8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x1c0]
push eax
push ebx
push str.luinst
lea eax, [esp + 0x4e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea eax, [esp + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [esp + 0x10], ebx
mov byte [esp + 0xf], bl
mov dword [esp + 0x18], ebx
jle 0x4020a6
mov dword [esp + 0x20], 0x64
mov eax, dword [esp + 0x20]
cdq
idiv dword [esp + 0x10]
push eax
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 1
push ebx
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
call fcn.004019ad
cmp byte [0x41abb8], bl
jne 0x40210f
push dword [esp + 0x18]
mov eax, dword [esp + 0x18]
lea ebx, [esp + 0x94]
call fcn.00405b42
xor ebx, ebx
pop ecx
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x40212b
lea eax, [esp + 0x94]
push str..exe
push eax
call fcn.00405ed0
pop ecx
pop ecx
test eax, eax
je 0x40200c
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x5e4]
push eax
call fcn.00405f60
pop ecx
pop ecx
mov byte [esp + 0xf], 1
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x3d8]
push 0x414cb0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0xa4]
push 0x2f
push eax
call fcn.00406070
add esp, 0x18
cmp eax, ebx
jne 0x4020d4
lea eax, [esp + 0x94]
push 0x5c
push eax
call fcn.00406070
pop ecx
pop ecx
cmp eax, ebx
jne 0x4020d4
test byte [esp + 0x198], 0x10
jne 0x4020d4
mov eax, dword [esp + 0x14]
cmp dword [eax], 1
jne 0x4020ff
mov ecx, dword [eax + 4]
lea eax, [esp + 0x3d0]
push eax
push dword [esp + 0x1c]
call fcn.00405870
mov dword [0x41abbc], eax
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x4020e5
push ebx
push str.Error
push str.Failure_unzipping_part_of_payload
push edi
call esi
xor ebx, ebx
call fcn.004019ad
mov esi, dword [esp + 0x14]
call fcn.00405b6d
cmp dword [esp + 0x1c], ebx
jne 0x402118
cmp byte [esp + 0xf], bl
jne 0x40213b
push ebx
push str.Error
push str.Did_not_find_setup.exe_in_payload
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402118
push ebx
lea eax, [esp + 0x98]
push eax
push str.Subdirectories_not_implemented_in_installer_
push edi
call esi
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add dword [esp + 0x20], 0x64
xor ebx, ebx
cmp eax, dword [esp + 0x10]
jge 0x4020a6
jmp 0x401f87
mov eax, 0x80000
mov dword [0x41abbc], eax
mov dword [esp + 0x1c], eax
jmp 0x402096
mov esi, dword [esp + 0x14]
call fcn.00405b6d
lea eax, [esp + 0x1c0]
push eax
call fcn.00401160
pop ecx
jmp 0x402232
push ebx
push str.Error
push str.Part_of_payload_is_faulty
jmp 0x4020a1
call fcn.004019ad
cmp byte [0x41abb8], bl
jne 0x402118
lea eax, [esp + 0x5e0]
push eax
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x2d0]
push 0x414cb0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x3c
pop esi
push esi
lea eax, [esp + 0x68]
push ebx
push eax
call fcn.004064a0
lea eax, [esp + 0x2e4]
mov dword [esp + 0x80], eax
add esp, 0x1c
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 0x40
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], str.open
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, eax
cmp esi, ebx
je 0x4021f3
push 0x3a98
push dword [esp + 0x90]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [esp + 0x8c]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebx
je 0x4021ef
xor esi, esi
cmp esi, ebx
jne 0x402226
lea eax, [esp + 0x2c8]
push eax
lea eax, [esp + 0x6ec]
push str.Error_launching_setup_program._r_n_r_nYou_can_proceed_by_running_it_manually:_r_n_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push str.Setup
lea eax, [esp + 0x6f0]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x1c0]
call fcn.004011a7
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0xeec]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00405ca5
mov esp, ebp
pop ebp
ret 0x10