Function at 0x417e28
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
push 0x4a6204
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
call fcn.004101ac
pop ecx
mov eax, dword [0x4a6208]
test eax, eax
jne 0x4185da
mov dword [0x4a6208], 1
test esi, esi
jne 0x417e77
movzx eax, byte [ebp + 0x13]
test al, 8
je 0x418191
jmp 0x417e7b
movzx eax, byte [ebp + 0x13]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
test al, 8
je 0x417ebd
test esi, esi
jne 0x417e99
mov eax, str.Stop___Program_terminated.
mov dword [ebp - 0x1c], eax
mov edx, 0x1a
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x417eb2
mov eax, str.Return_code
mov dword [ebp - 0x1c], eax
mov edx, 0xc
mov dword [ebp - 0x18], edx
jmp 0x417eb6
xor ebx, ebx
xor esi, esi
mov edi, 6
jmp 0x417ec3
xor ebx, ebx
xor esi, esi
xor edi, edi
lea edx, [ebp - 4]
lea eax, [ebp - 0x48]
push 0x22
push eax
push edx
push edi
call fcn.0041fcd8
add esp, 0x10
test eax, eax
je 0x417f03
mov edx, dword [ebp + 0x10]
test dl, 1
je 0x417ef2
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
movzx eax, ax
mov esp, ebp
pop ebp
ret
push section._RDATA
push edi
push 2
push eax
call fcn.00422438
add esp, 0x10
mov edi, dword [ebp - 4]
movzx eax, byte [edi + 0x119]
test al, 0x20
je 0x4183fd
movzx eax, byte [edi + 0x11a]
test al, 0x40
je 0x4180a2
push 0
push edi
call fcn.004266d4
add esp, 8
test eax, eax
jne 0x418083
movsx eax, byte [edi + 0x10c]
cmp eax, 2
je 0x418268
cmp eax, 4
je 0x418268
cmp eax, 6
jge 0x41822e
cmp eax, 1
je 0x417faf
cmp eax, 5
je 0x417faf
cmp eax, 3
jne 0x417f87
push edi
mov eax, 0x2c
push eax
push eax
push 1
call fcn.00421ec0
add esp, 0x10
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0x23f
push 0x4b207c
push 2
push 8
call fcn.00422438
add esp, 0x10
mov eax, dword [edi + 0x2c]
movzx edx, byte [edi + 0x118]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
jmp 0x41800d
mov edx, dword [edi + 0x30]
mov dword [ebp - 0x28], edx
test edx, edx
je 0x418223
mov ecx, dword [edi + 0xb0]
mov dword [ebp - 0x50], ecx
mov dword [edi + 0x2c], edx
lea edx, [edx + ecx]
mov dword [ebp - 0x4c], edx
movzx edx, byte [edi + 0x118]
mov dword [ebp - 0x24], edx
test dl, 4
je 0x418007
movzx edx, byte [edi + 0x11a]
test dl, 0x40
je 0x417fff
movzx edx, byte [edi + 0x11b]
test dl, 4
je 0x417fff
cmp eax, 1
je 0x4181ca
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x34], eax
jmp 0x41800d
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x34], eax
mov eax, dword [ebp - 0x24]
test al, 4
je 0x418036
movzx eax, byte [edi + 0x11a]
test al, 0x40
je 0x418036
movzx eax, byte [edi + 0x11b]
test al, 4
je 0x418036
movsx eax, byte [edi + 0x10c]
cmp eax, 1
je 0x41804f
movsx eax, byte [edi + 0x10e]
cmp eax, 2
je 0x418201
cmp eax, 1
je 0x4181db
mov edx, dword [ebp - 0x28]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], edx
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x10e]
cmp eax, 1
jne 0x418142
mov ecx, dword [edx + 0x2c]
lea eax, [ecx + 1]
mov dword [edx + 0x2c], eax
mov byte [ecx], 0x20
mov edx, dword [ebp - 4]
jmp 0x418142
push edi
mov eax, 0x26
push eax
push eax
push 1
call fcn.00421ec0
add esp, 0x10
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.004266d4
add esp, 8
test eax, eax
jne 0x418172
movsx eax, byte [edi + 0x10c]
cmp eax, 3
je 0x4183a5
cmp eax, 2
je 0x41837b
cmp eax, 4
je 0x41837b
cmp eax, 6
jge 0x418104
cmp eax, 1
je 0x4180e6
cmp eax, 5
jne 0x418129
mov edx, dword [edi + 0x30]
test edx, edx
je 0x4182a3
mov eax, dword [edi + 0xb0]
mov dword [edi + 0x2c], edx
add edx, eax
mov dword [edi + 0x34], edx
mov edx, dword [ebp - 4]
jmp 0x418142
cmp eax, 7
jg 0x418129
mov edx, dword [edi + 0x30]
test edx, edx
je 0x4182ab
mov eax, dword [edi + 0xb0]
mov dword [edi + 0x2c], edx
lea edx, [edx + eax - 1]
mov dword [edi + 0x34], edx
mov edx, dword [ebp - 4]
jmp 0x418142
push 0x245
push 0x4b207c
push 2
push 8
call fcn.00422438
add esp, 0x10
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x4182b9
mov ecx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x1c]
xor eax, eax
jmp 0x41815c
mov edx, dword [ebp - 4]
mov edi, dword [edx + 0x2c]
movzx edx, byte [ebx + eax]
mov byte [edi + eax], dl
add eax, 1
cmp eax, ecx
jl 0x418159
jmp 0x4182b3
push edi
mov eax, 0x26
push eax
push eax
push 1
call fcn.00421ec0
add esp, 0x10
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
call fcn.00429f18
mov eax, dword [0x4a2400]
test eax, eax
jne 0x4181a7
push 0
call fcn.0046dde9
pop ecx
mov eax, dword [ebp + 0x18]
mov dword [0x4a6204], 0
cmp eax, 1
je 0x4181be
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00451a74
pop ecx
jmp 0x41819f
mov edx, ecx
mov eax, dword [ebp - 0x28]
lea ecx, [eax + edx - 2]
mov dword [edi + 0x34], ecx
jmp 0x41800d
movsx eax, byte [edi + 0x10c]
cmp eax, 7
je 0x4181f0
cmp eax, 6
je 0x4181f0
add dword [edi + 0x34], 0xffffffff
mov eax, dword [ebp - 0x28]
add eax, 5
mov dword [ebp - 0x28], eax
mov dword [edi + 0x2c], eax
jmp 0x41804f
movsx eax, byte [edi + 0x10c]
cmp eax, 7
je 0x41804f
cmp eax, 6
je 0x41804f
add dword [edi + 0x34], 0xffffffff
jmp 0x41804f
mov edx, dword [edi + 0x28]
mov dword [ebp - 0x28], edx
jmp 0x417fbd
cmp eax, 7
jg 0x417f87
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x418260
mov edx, dword [edi + 0xb0]
mov dword [edi + 0x2c], eax
lea ecx, [eax + edx - 1]
movzx eax, byte [edi + 0x118]
mov dword [edi + 0x34], ecx
mov dword [ebp - 0x24], eax
jmp 0x41800d
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x28], eax
jmp 0x418241
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x418298
add dword [ebp - 0x28], 4
mov eax, dword [ebp - 0x28]
mov edx, dword [edi + 0xb0]
mov dword [edi + 0x2c], eax
lea ecx, [eax + edx - 8]
movzx eax, byte [edi + 0x118]
mov dword [edi + 0x34], ecx
mov dword [ebp - 0x24], eax
jmp 0x41800d
mov eax, dword [edi + 0x28]
add eax, 4
mov dword [ebp - 0x28], eax
jmp 0x418276
mov edx, dword [edi + 0x28]
jmp 0x4180f1
mov edx, dword [edi + 0x28]
jmp 0x418114
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
test esi, esi
jle 0x4182de
mov ecx, dword [ebp - 0x18]
xor edi, edi
jmp 0x4182c7
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2c]
movzx eax, byte [ebx + edi]
mov byte [edx + ecx], al
add ecx, 1
add edi, 1
cmp edi, esi
jl 0x4182c4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
add eax, esi
add dword [edx + 0x2c], eax
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x11a]
test dl, 0x40
je 0x4182fe
push eax
call fcn.00425344
pop ecx
jmp 0x418305
push eax
call fcn.00424a98
pop ecx
test eax, eax
je 0x418325
push dword [ebp - 4]
push eax
push eax
push 1
call fcn.00421ec0
add esp, 0x10
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push dword [eax + 0xb8]
call fcn.004206b4
pop ecx
call fcn.00429f18
mov eax, dword [0x4a2400]
test eax, eax
jne 0x418359
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x41834f
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0046dde9
pop ecx
mov eax, dword [ebp + 0x18]
mov dword [0x4a6204], 0
cmp eax, 1
je 0x418376
xor eax, eax
push eax
call fcn.00451a74
pop ecx
jmp 0x418342
mov eax, dword [ebp - 0x14]
jmp 0x41836d
mov edx, dword [edi + 0x30]
test edx, edx
je 0x41839d
add edx, 4
mov eax, dword [edi + 0xb0]
mov dword [edi + 0x2c], edx
lea edx, [edx + eax - 8]
mov dword [edi + 0x34], edx
mov edx, dword [ebp - 4]
jmp 0x418142
mov edx, dword [edi + 0x28]
add edx, 4
jmp 0x418385
mov edx, dword [edi + 0x30]
mov eax, 1
mov word [ebp - 0x54], ax
test edx, edx
je 0x4183e0
mov eax, 1
mov byte [edx + 2], al
mov edx, dword [edi + 0x30]
mov byte [edx + 3], 0
mov edx, dword [edi + 0x30]
add edx, 4
mov eax, dword [edi + 0xb0]
mov dword [edi + 0x2c], edx
add edx, eax
mov dword [edi + 0x34], edx
mov edx, dword [ebp - 4]
jmp 0x418142
movzx eax, byte [ebp - 0x53]
mov ecx, dword [edi + 0x28]
mov edx, 1
mov byte [ecx + 2], dl
mov edx, dword [edi + 0x28]
mov byte [edx + 3], al
mov edx, dword [edi + 0x28]
add edx, 4
jmp 0x4183ca
movzx eax, byte [ebp + 0x12]
movzx ecx, byte [edi + 0x118]
and ecx, 0xfffffffd
and eax, 4
shr eax, 2
and eax, 1
add eax, eax
or ecx, eax
mov byte [edi + 0x118], cl
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x118]
and edx, 0xfffffffe
movzx edi, byte [ebp + 0x10]
and edi, 0xffffff80
shr edi, 7
and edi, 1
or edx, edi
mov byte [eax + 0x118], dl
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp + 0x13]
movzx eax, byte [ecx + 0x118]
and edx, 8
shr edx, 3
and edx, 1
mov dword [ebp - 0x4c], edx
and eax, 0xfffffffb
shl edx, 2
or eax, edx
mov byte [ecx + 0x118], al
movzx eax, byte [ebp + 0x13]
test eax, 0x80
je 0x418480
lea eax, [ebp + 0x1f]
and eax, 0xfffffffc
mov edx, dword [eax]
mov dword [ebp - 0x50], edx
jmp 0x418485
xor eax, eax
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp + 0x13]
movzx eax, byte [ecx + 0x118]
and eax, 0xfffffff7
and edx, 4
shr edx, 2
and edx, 1
shl edx, 3
or eax, edx
mov edx, dword [ebp - 0x4c]
mov byte [ecx + 0x118], al
mov ecx, edx
mov edi, dword [ebp - 4]
movzx eax, byte [edi + 0x118]
and eax, 0xffffffdf
shl ecx, 5
or eax, ecx
movzx ecx, byte [ebp + 0x13]
mov byte [edi + 0x118], al
mov edi, dword [ebp - 4]
movzx eax, byte [edi + 0x121]
and eax, 0xfffffffe
and ecx, 0x10
shr ecx, 4
and ecx, 1
or eax, ecx
mov byte [edi + 0x121], al
add edx, edx
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + 0x121]
and eax, 0xfffffffd
or eax, edx
movzx edx, byte [ebp + 0x13]
mov byte [ecx + 0x121], al
mov edi, dword [ebp - 4]
movzx eax, byte [edi + 0x118]
and edx, 0x20
shr edx, 5
and edx, 1
and eax, 0xffffffbf
mov ecx, edx
shl ecx, 6
or eax, ecx
mov byte [edi + 0x118], al
shl edx, 7
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x50]
movzx eax, byte [ecx + 0x118]
and eax, 0x7f
or eax, edx
mov byte [ecx + 0x118], al
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + 0x119]
and ecx, 0xfffffffe
mov eax, edi
and eax, 1
or ecx, eax
mov byte [edx + 0x119], cl
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x121]
and edx, 0xfffffff7
mov eax, edi
and eax, 2
shr eax, 1
and eax, 1
shl eax, 3
or edx, eax
mov byte [ecx + 0x121], dl
and edi, 0xc
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x119]
and eax, 0xfffffff9
shr edi, 2
and edi, 3
add edi, edi
or eax, edi
mov byte [edx + 0x119], al
mov eax, 1
push eax
push 4
push eax
push dword [ebp - 4]
call fcn.0041c1dc
add esp, 0x10
test eax, eax
jne 0x4185be
mov edi, dword [ebp - 4]
jmp 0x417f15
push dword [ebp - 4]
push eax
push eax
push 2
call fcn.00421ec0
add esp, 0x10
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [0x4a6204], eax
push eax
call fcn.0046dde9
pop ecx