Function at 0x4058b0
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x994]
sub esp, 0xa14
mov eax, dword [0x4161a0]
xor eax, ebp
mov dword [ebp + 0x990], eax
mov ecx, dword [ebp + 0x9a4]
mov eax, dword [ebp + 0x99c]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x80], ecx
push eax
mov ecx, 0x417fe8
call fcn.0040476a
push str.uninstall.lng
mov ecx, 0x417fc8
call fcn.0040456a
push ebx
call dword [0x412258]
push str.riched32.dll
call dword [0x412058]
mov esi, dword [0x4121ec]
mov edi, str.RARICON
push edi
push dword [0x417fb8]
mov dword [ebp - 0x7c], eax
call esi
mov dword [0x419514], eax
cmp eax, ebx
jne 0x405677
mov eax, dword [0x417fb4]
cmp eax, dword [0x417fb8]
je 0x405677
push edi
push eax
call esi
mov dword [0x419514], eax
push 0x412e6c
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x2bc
push ebx
push ebx
push ebx
push 0xfffffffffffffff4
call fcn.00405a64
push eax
call dword [0x412024]
mov dword [0x419510], eax
push 0x400
lea eax, [ebp + 0x390]
push eax
push str.sfxcmd
mov dword [ebp - 0x78], ebx
mov byte [ebp - 0x71], bl
mov byte [ebp + 0x390], bl
call dword [0x412078]
cmp byte [ebp + 0x390], bl
je 0x405707
lea esi, [ebp + 0x390]
mov al, byte [esi]
cmp al, 0x2d
je 0x4056da
cmp al, 0x2f
jne 0x4056f9
movsx eax, byte [esi + 1]
push eax
call fcn.0040779a
pop ecx
cmp eax, 0x53
jne 0x4056f9
movzx eax, byte [esi + 2]
push eax
call fcn.00407b58
pop ecx
test eax, eax
je 0x405700
inc esi
cmp byte [esi], bl
jne 0x4056d0
jmp 0x405707
mov byte [0x419518], 1
mov edi, 0x412e60
push edi
push dword [ebp - 0x80]
call fcn.00406be0
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x405905
push 5
inc esi
push str.setup
push esi
call fcn.00410d74
add esp, 0xc
test eax, eax
jne 0x40573f
mov byte [ebp - 0x71], 1
jmp 0x40583d
push 3
push 0x412e54
push esi
call fcn.00410d74
add esp, 0xc
test eax, eax
jne 0x40575f
mov byte [0x419519], 1
jmp 0x40583d
movsx eax, byte [esi]
push eax
call fcn.0040779a
pop ecx
cmp eax, 0x53
jne 0x40578c
movzx eax, byte [esi + 1]
push eax
call fcn.00407b58
pop ecx
test eax, eax
jne 0x40578c
dec dword [ebp - 0x78]
mov byte [0x419518], 1
jmp 0x40583d
push 4
push str.wait
push esi
call fcn.00410d74
add esp, 0xc
test eax, eax
jne 0x4057b0
push 0x7d0
call dword [0x41209c]
jmp 0x40583d
push 7
push str.warning
push esi
call fcn.00410d74
add esp, 0xc
test eax, eax
jne 0x40583d
push 0x400
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [0x412040]
push 0x13f1
call fcn.004046ec
push eax
lea eax, [ebp + 0x790]
push 0x412e40
push eax
call fcn.00405fcd
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push 0x13f2
call fcn.004046ec
push eax
lea eax, [ebp + 0x790]
push eax
call fcn.00405ea0
pop ecx
lea eax, [ebp + eax + 0x790]
push eax
call fcn.00405fcd
add esp, 0xc
push 0x10040
push 0x13f0
call fcn.004046ec
push eax
lea eax, [ebp + 0x790]
push eax
push ebx
call dword [0x4121f0]
inc dword [ebp - 0x78]
push edi
push esi
call fcn.00406be0
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x405721
cmp byte [ebp - 0x71], bl
je 0x405900
mov esi, dword [0x412234]
push ebx
push 0x404dd4
push ebx
push str.SETUPDLG
push dword [0x417fb8]
call esi
test eax, eax
je 0x405900
call fcn.00404d29
cmp byte [0x419519], bl
jne 0x4058cf
push ebx
push 0x4049c8
push ebx
push str.DONEDLG
push dword [0x417fb8]
call esi
call fcn.00401c6b
test eax, eax
je 0x4058cf
cmp byte [0x419518], bl
jne 0x4058cf
push 0x40
push 0x13ed
call fcn.004046ec
push eax
push 0x140a
call fcn.004046ec
push eax
push ebx
call dword [0x4121f0]
cmp byte [0x419110], bl
je 0x405900
cmp byte [0x419518], bl
jne 0x405900
cmp byte [0x419519], bl
jne 0x405900
push 1
push 0x41255f
push ebx
push 0x419110
push str.open
push ebx
call dword [0x4121c4]
cmp dword [ebp - 0x78], ebx
jne 0x40590a
call fcn.00404fc1
cmp dword [ebp - 0x7c], ebx
je 0x405918
push dword [ebp - 0x7c]
call dword [0x412050]
call dword [0x412254]
push dword [0x419510]
mov esi, dword [0x412028]
call esi
push dword [0x419514]
call esi
mov ecx, dword [ebp + 0x990]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00405fbe
add ebp, 0x994
leave
ret 0x10