Function at 0x4047ef
Capabilities:
Create process on windows
Set current directory

Disassembly:
push 0x8c
mov eax, 0x432e57
call fcn.0042e085
lea ecx, [edi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x40]
test eax, eax
je 0x404876
xor ebx, ebx
lea esi, [ebp - 0x20]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x40], vtable.CPasswordDlg.0
call fcn.00401ce7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ebx, [ebp - 0x40]
call fcn.004051a1
cmp eax, 2
je 0x404865
mov eax, dword [ebp - 0x20]
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x404865
lea ecx, [edi + 0x28]
mov edx, dword [ecx]
push esi
push eax
call dword [edx + 0x24]
or dword [ebp - 4], 0xffffffff
mov eax, ebx
call fcn.004055cd
jmp 0x404878
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x40]
call fcn.004055cd
jmp 0x404a30
xor esi, esi
mov eax, dword [0x442f6c]
mov ecx, 0x442f6c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ebx, [edi + 4]
push 0x3e8
lea ecx, [ebp - 0x10]
mov eax, ebx
mov dword [ebp - 4], 1
call fcn.004052ea
push 0x3eb
push dword [ebx]
mov dword [edi + 0x450], 1
mov dword [edi + 0x458], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push esi
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov ebx, edi
mov dword [edi + 0x46c], eax
mov dword [edi + 0x49c], esi
call fcn.00404772
push dword [ebp - 0x10]
lea ebx, [edi + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test eax, eax
jne 0x404958
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
cmp eax, 0xa0000017
je 0x40490d
cmp eax, 0xa0000059
je 0x40490d
cmp eax, esi
jne 0x404919
cmp dword [edi + 0x49c], esi
je 0x404a16
mov ebx, 0x439cd0
cmp eax, 0xa0000021
jne 0x404944
cmp dword [0x443bc0], esi
jne 0x404932
mov ebx, str.Bandizip_SFX
push str.ERR_INVALID_PASSWORD
call fcn.0040105d
pop ecx
push 0x30
jmp 0x404a0b
cmp dword [0x443bc0], esi
jne 0x404951
mov ebx, str.Bandizip_SFX
push str.ERR_ERROR_OCCURRED
jmp 0x404937
mov eax, dword [edi + 0x470]
cmp dword [eax - 0xc], esi
je 0x4049d5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x40
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.00422360
mov eax, dword [edi + 0x470]
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
mov dword [ebp - 0x98], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4049bd
push dword [ebp - 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x4c]
call ebx
jmp 0x4049d5
push 5
push dword [ebp - 0x10]
push esi
push dword [edi + 0x470]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [edi + 0x474], esi
je 0x4049ec
push esi
push esi
push 0x10
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x404a16
mov ebx, 0x439cd0
cmp dword [0x443bc0], esi
jne 0x4049fe
mov ebx, str.Bandizip_SFX
push str.MSG_COMPLETED
call fcn.0040105d
pop ecx
push 0x40
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
mov ebx, edi
call fcn.00404772
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [edi + 0x450], esi
call fcn.00401cc5
xor eax, eax
call fcn.0042e124
ret