Function at 0x4059f0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4099d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
mov eax, dword [0x40d078]
push ebx
xor eax, ebp
mov dword [esp + 0x1cc], eax
push esi
push edi
mov byte [esp + 0xc8], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xc9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
xor edx, edx
lea ebx, [esp + 0xcc]
stosb byte es:[edi], al
call fcn.00404430
mov eax, ebx
push 0x40a900
push eax
call dword [0x40a264]
add esp, 0xc
test eax, eax
je 0x405f68
lea ecx, [esp + 0x20]
xor edi, edi
push ecx
mov dword [esp + 0x24], edi
call dword [0x40a0d4]
push eax
call dword [0x40a2b8]
cmp eax, edi
mov dword [esp + 0x2c], eax
je 0x405f61
cmp dword [esp + 0x20], 2
jl 0x405f61
mov edx, dword [0x40d1c4]
mov ecx, 0x40d1c4
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, ebx
lea ebx, [esp + 0x44]
mov dword [esp + 0x1e4], edi
call fcn.004067f0
mov edi, eax
mov ecx, 1
mov byte [esp + 0x1e4], cl
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
jge 0x405aee
mov eax, 0x104
lea ecx, [esp + 0x14]
call fcn.00406960
mov esi, dword [esp + 0x14]
mov edi, dword [edi]
mov ebx, 0x104
mov edx, edi
call fcn.00403c90
mov byte [esp + 0x1e4], 0
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x405b1a
push eax
call dword [0x40a250]
add esp, 4
test esi, esi
jne 0x405b22
xor eax, eax
jmp 0x405b36
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405b27
sub eax, edx
js 0x405f57
cmp eax, dword [esi - 8]
jg 0x405f57
mov dword [esi - 0xc], eax
mov bl, 0x5c
lea edi, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.00406050
push 5
mov edx, edi
push edx
mov eax, str.data
call fcn.00406ae0
lea eax, [esp + 0x34]
push eax
call fcn.00403bb0
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x40], eax
neg eax
sbb eax, eax
lea ecx, [esp + 0x34]
and eax, ecx
push eax
push edx
call dword [0x40a094]
push 0xb
mov eax, edi
push eax
mov eax, str._ravext.ini
call fcn.00406ae0
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
mov dword [esp + 0x34], 0
call dword [0x40a04c]
mov ebx, eax
test ebx, ebx
je 0x405f21
cmp ebx, 0xffffffff
je 0x405f21
mov esi, dword [0x40a0bc]
push 0
lea edx, [esp + 0x1c]
push edx
push 2
lea eax, [esp + 0x3c]
push eax
push ebx
mov dword [esp + 0x44], 0xfeff
call esi
push 0
lea ecx, [esp + 0x1c]
push ecx
push str._RavExt__r_n
call dword [0x40a22c]
add esp, 4
shl eax, 1
push eax
push str._RavExt__r_n
push ebx
call esi
mov edx, dword [0x40d1c4]
mov ecx, 0x40d1c4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x1e4], 2
mov eax, dword [esp + 0x20]
dec eax
push eax
push str.FileNum_d_r_n
lea edi, [esp + 0x2c]
call fcn.004060d0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
add esp, 8
push 0
lea edx, [esp + 0x1c]
push edx
add eax, eax
push eax
push ecx
push ebx
call esi
mov edx, dword [0x40d1c4]
mov ecx, 0x40d1c4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1e4], 3
cmp dword [esp + 0x20], 1
jle 0x405d3f
mov eax, dword [esp + 0x2c]
add eax, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
push edx
call dword [0x40a22c]
push eax
mov eax, dword [esp + 0x18]
push eax
push str.Len_d_d_r_n
lea edi, [esp + 0x2c]
call fcn.004060d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
add esp, 0x10
push 0
lea edx, [esp + 0x1c]
push edx
add ecx, ecx
push ecx
push eax
push ebx
call esi
mov edx, dword [esp + 0x10]
push edx
push str.File_d
call fcn.004060d0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
add esp, 8
push 0
lea edx, [esp + 0x1c]
push edx
add eax, eax
push eax
push ecx
push ebx
call esi
mov edi, dword [esp + 0x28]
mov edx, dword [edi]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [0x40a22c]
add esp, 4
shl eax, 1
push eax
mov eax, dword [edi]
push eax
push ebx
call esi
push 0
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0x40a888
push ebx
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc eax
add edi, 4
mov dword [esp + 0x10], eax
inc eax
cmp eax, ecx
mov dword [esp + 0x28], edi
jl 0x405c91
push ebx
call dword [0x40a050]
mov edx, dword [0x40d1c4]
mov ecx, 0x40d1c4
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov byte [esp + 0x1e4], 4
mov ebx, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, ebx
sub eax, 0x410
or eax, ecx
jge 0x405d8b
mov eax, 0x410
lea ecx, [esp + 0x10]
call fcn.00406960
mov esi, dword [esp + 0x10]
push 0x410
lea ebx, [esp + 0xcc]
mov ecx, esi
call fcn.004041c0
add esp, 4
test esi, esi
jne 0x405da9
xor eax, eax
jmp 0x405dbf
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405db0
sub eax, edx
js 0x405f57
cmp eax, dword [esi - 8]
jg 0x405f57
mov dword [esi - 0xc], eax
mov bl, 0x5c
lea edi, [esp + 0x10]
mov byte [eax + esi], 0
call fcn.00406050
push 0xc
mov eax, edi
push eax
mov eax, str._ravlite.exe
call fcn.00406ae0
mov esi, dword [esp + 0x10]
xor ebx, ebx
push ebx
push ebx
push str._SHELL
push esi
push str.open
push ebx
call dword [0x40a2b0]
cmp eax, 0x20
jl 0x405eb4
mov ecx, dword [esp + 0x2c]
push ecx
call dword [0x40a0d8]
lea eax, [esi - 0x10]
mov byte [esp + 0x1e4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405e39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x1e4], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x1e4], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x1e4], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ead
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
jmp 0x405f6a
lea eax, [esi - 0x10]
mov byte [esp + 0x1e4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ed6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x1e4], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405efc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x1e4], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
push eax
call dword [0x40a0d8]
mov dword [esp + 0x1e4], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x405f68
push 0x80070057
call fcn.00407040
push eax
call dword [0x40a0d8]
mov al, 1
mov ecx, dword [esp + 0x1dc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1d4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004092bc
mov esp, ebp
pop ebp
ret