Function at 0x4015c0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x148
push ebx
mov ebx, dword [esp + 0x150]
push ebp
xor ebp, ebp
push esi
cmp ebx, 2
push edi
mov dword [esp + 0x20], ebp
jne 0x4017e2
mov eax, dword [esp + 0x160]
or ecx, 0xffffffff
mov edx, dword [eax + 4]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 6
jbe 0x4017e2
mov ecx, 3
mov edi, str.__key
mov esi, edx
xor eax, eax
repe cmpsw word [esi], word es:[edi]
jne 0x4017e2
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xe
je 0x40164a
call fcn.00401000
push 8
push str.Key_supplied_is_not_the_correct_length___must_be__d_characters_n
push 0x4e2b08
call fcn.0040c678
add esp, 0xc
call fcn.00401060
push 1
call fcn.0040c9a6
lea edi, [edx + 6]
mov ecx, 2
mov esi, str.FORadJwO
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x401680
call fcn.00401000
push str.Key_supplied_is_not_the_correct_key_n
push 0x4e2b08
call fcn.0040c678
add esp, 8
call fcn.00401060
push 1
call fcn.0040c9a6
lea eax, [esp + 0x28]
push eax
push str.FORadJwO
call fcn.00401300
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x4017ca
mov ecx, dword [0x425888]
lea edx, [esp + 0x58]
push ecx
push str._s.out
push edx
call fcn.0040c927
lea eax, [esp + 0x64]
push 0x4e2534
push eax
call fcn.0040c914
mov esi, eax
add esp, 0x14
cmp esi, ebp
jne 0x4016f4
call fcn.00401000
mov ecx, dword [0x425888]
push ecx
push str.Unable_to_open_file:__s_to_dump_program_contents_n
push 0x4e2b08
call fcn.0040c678
add esp, 0xc
call fcn.00401060
push 1
call fcn.0040c9a6
push str.________________Original_program_follows_________________n
push esi
call fcn.0040c678
add esp, 8
push 0x8000
push esi
call fcn.00411fa6
add esp, 4
push eax
call fcn.0040c87e
mov eax, dword [0x425878]
add esp, 8
xor edi, edi
cmp eax, ebp
jle 0x40176f
xor edx, edx
push esi
mov dl, byte [ebx + edi]
push edx
call fcn.0040c6aa
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
add esp, 8
cmp edx, 0x3e7
jne 0x401765
push esi
call fcn.0040c771
add esp, 4
push 0x8000
push esi
call fcn.00411fa6
add esp, 4
push eax
call fcn.0040c87e
add esp, 8
mov eax, dword [0x425878]
inc edi
cmp edi, eax
jl 0x401724
push esi
call fcn.0040c771
add esp, 4
push 0x4000
push esi
call fcn.00411fa6
add esp, 4
push eax
call fcn.0040c87e
push str.________________End_of_Original_program__________________n
push esi
call fcn.0040c678
push esi
call fcn.0040c771
push esi
call fcn.0040c549
call fcn.00401000
lea edx, [esp + 0x70]
push edx
push str.Original_program_dumped_to_file:__s_n
push 0x4e2b08
call fcn.0040c678
add esp, 0x24
call fcn.00401060
mov dword [esp + 0x10], ebp
jmp 0x4017d2
mov dword [esp + 0x10], 1
call fcn.00401060
movsx eax, word [esp + 0x10]
push eax
call fcn.0040c9a6
mov ecx, dword [0x425888]
push ebp
push 0x4010d0
push ecx
call sub.regina.dll_RexxRegisterExitExe
mov edx, dword [0x425888]
mov dword [esp + 0x54], ebp
lea ebp, [ebx - 1]
xor esi, esi
cmp ebp, esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 5
mov dword [esp + 0x2c], ebp
jle 0x401914
cmp ebx, 1
mov dword [esp + 0x24], esi
jle 0x40184d
mov eax, dword [esp + 0x160]
lea ebp, [ebx - 1]
lea edx, [eax + 4]
mov edi, dword [edx]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
dec ebp
jne 0x401831
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x24], esi
lea ecx, [esi + ebp + 1]
push ecx
call fcn.0040c6fd
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x40188f
call fcn.00401000
mov edx, dword [esp + 0x160]
mov eax, dword [edx]
push eax
push str._s:_out_of_memory_n
push 0x4e2b08
call fcn.0040c678
add esp, 0xc
call fcn.00401060
push 1
call fcn.0040c9a6
mov cl, byte [0x4e3464]
mov edx, 1
cmp ebx, edx
mov byte [eax], cl
jle 0x40190a
mov eax, dword [esp + 0x160]
add eax, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edi, dword [ecx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x1c]
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
cmp edx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x4018f2
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x4e2620]
mov word [edi - 1], ax
mov ecx, dword [esp + 0x14]
inc edx
add ecx, 4
cmp edx, ebx
mov dword [esp + 0x14], ecx
jl 0x4018ae
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
lea ecx, [esi + ebp - 1]
mov dword [esp + 0x18], ecx
jmp 0x40191c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x160]
mov eax, dword [edx]
push eax
call fcn.0040c390
mov edi, eax
add esp, 4
test edi, edi
jne 0x40193a
mov edi, dword [0x425888]
lea ecx, [esp + 0x28]
push ecx
push str.FORadJwO
call fcn.00401300
mov esi, eax
add esp, 8
test esi, esi
je 0x4019b3
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x58]
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
push 0
lea ecx, [esp + 0x48]
xor eax, eax
push str.SYSTEM
test ebp, ebp
push ecx
lea edx, [esp + 0x30]
push edi
push edx
setne al
push eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], 0
mov dword [esp + 0x54], 0x100
call sub.regina.dll_RexxStart
push esi
mov dword [esp + 0x24], eax
call fcn.0040c6ce
add esp, 4
jmp 0x4019bb
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4019cc
push eax
call fcn.0040c6ce
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4019e7
push eax
push str.Error_from_Rexx_interpreter:__d_n
push 0x4e2b08
call fcn.0040c678
add esp, 0xc
call fcn.00401060
movsx eax, word [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret