Function at 0x10048883
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp + 8]
push 0x100d8cec
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
call fcn.10031e7c
pop ecx
mov eax, dword [0x100d8cf0]
test eax, eax
jne 0x10048dcf
mov dword [0x100d8cf0], 1
test ebx, ebx
jne 0x1004831b
movzx eax, byte [ebp + 0x13]
test al, 8
je 0x1004890c
jmp 0x1004831f
movzx eax, byte [ebp + 0x13]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
and eax, 8
shr eax, 3
test eax, eax
je 0x100483da
test ebx, ebx
jne 0x10048377
push 0
push 0x209
call fcn.10014128
push 0x40
push eax
push str.Stop___Program_terminated.
call fcn.10090940
add esp, 0x14
mov ecx, str.Stop___Program_terminated.
mov dword [ebp - 0x1c], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x10048374
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x1004835d
add eax, 0xffffffff
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x1004838e
movzx eax, byte [ebp + 0x13]
xor esi, esi
xor ebx, ebx
and eax, 8
shr eax, 3
jmp 0x100483de
push 0
push 0x20a
call fcn.10014128
push 0x40
push eax
push str.Return_code
call fcn.10090940
add esp, 0x14
mov ecx, str.Return_code
mov dword [ebp - 0x1c], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x100483cb
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x100483b4
add eax, 0xffffffff
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp + 0x13]
and eax, 8
shr eax, 3
jmp 0x100483de
xor esi, esi
xor ebx, ebx
lea edx, [ebp - 4]
push 0x28
test eax, eax
mov edi, 6
jne 0x100483f1
mov edi, 0
lea eax, [ebp - 0x48]
push eax
push edx
push edi
call fcn.10026824
add esp, 0x10
test eax, eax
je 0x1004842d
movzx edx, byte [ebp + 0x10]
test dl, 1
je 0x1004841c
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
movzx eax, ax
mov esp, ebp
pop ebp
ret
push 0x100b600c
push edi
push 2
push eax
call fcn.100149ac
add esp, 0x10
mov edi, dword [ebp - 4]
movzx eax, byte [edi + 0x129]
test al, 0x20
je 0x10048b4e
movzx eax, byte [edi + 0x12a]
test al, 0x40
je 0x10048755
push 0
push edi
call fcn.1002b60c
add esp, 8
test eax, eax
je 0x10048502
mov edx, dword [edi + 0x18]
test edx, edx
je 0x10048949
movzx eax, byte [edx + 0x3c]
test al, 2
je 0x100484a3
mov eax, 0x26
mov dword [edx + 0x30], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x34], eax
mov eax, dword [edi + 0x64]
test eax, eax
je 0x10048491
xor edx, edx
mov dword [eax + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
movzx ecx, byte [edi + 0x12b]
movzx ebx, byte [edi + 0x12c]
mov edx, ecx
and edx, 0x40
mov esi, 2
xor eax, eax
test edx, edx
setne al
test ecx, 0x80
jne 0x100484cf
mov esi, 0
test bl, 1
mov edx, 4
jne 0x100484de
mov edx, 0
or eax, esi
or eax, edx
mov edx, 0x26
push edx
push edx
push eax
push 0xffffffffffffffff
push edi
call fcn.10077ea0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
movsx eax, byte [edi + 0x11c]
mov dword [ebp - 0x20], eax
lea eax, [eax - 1]
cmp eax, 6
ja case.default.0x1004851f
mov eax, dword [eax*4 + 0x100bfddc]
jmp eax
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x10048531
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x28], eax
mov edx, dword [edi + 0xc0]
mov dword [edi + 0x3c], eax
lea ecx, [eax + edx - 1]
movzx eax, byte [edi + 0x128]
mov dword [edi + 0x44], ecx
mov dword [ebp - 0x24], eax
jmp 0x100486ae
mov edx, dword [edi + 0x18]
test edx, edx
je 0x10048968
movzx eax, byte [edx + 0x3c]
test al, 2
je 0x10048592
mov eax, 0x2c
mov dword [edx + 0x30], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x34], eax
mov eax, dword [edi + 0x64]
test eax, eax
je 0x10048580
xor edx, edx
mov dword [eax + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov eax, 0x2c
mov esp, ebp
pop ebp
ret
movzx ecx, byte [edi + 0x12b]
movzx ebx, byte [edi + 0x12c]
mov edx, ecx
and edx, 0x40
mov esi, 2
xor eax, eax
test edx, edx
setne al
test ecx, 0x80
jne 0x100485be
mov esi, 0
test bl, 1
mov edx, 4
jne 0x100485cd
mov edx, 0
or eax, esi
or eax, edx
mov edx, 0x2c
push edx
push edx
push eax
push 0xffffffffffffffff
push edi
call fcn.10077ea0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10048987
add dword [ebp - 0x28], 4
mov eax, dword [ebp - 0x28]
mov edx, dword [edi + 0xc0]
mov dword [edi + 0x3c], eax
lea ecx, [eax + edx - 8]
movzx eax, byte [edi + 0x128]
mov dword [edi + 0x44], ecx
mov dword [ebp - 0x24], eax
jmp 0x100486ae
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x10048635
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x28], eax
mov edx, eax
mov eax, dword [edi + 0xc0]
mov dword [edi + 0x3c], edx
lea ecx, [edx + eax]
movzx edx, byte [edi + 0x128]
test dl, 4
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x24], edx
je 0x10048675
movzx edx, byte [edi + 0x12a]
test dl, 0x40
je 0x10048675
movzx edx, byte [edi + 0x12b]
test dl, 4
je 0x10048675
mov edx, dword [ebp - 0x20]
cmp edx, 1
je 0x1004867c
mov eax, ecx
mov dword [edi + 0x44], eax
jmp 0x100486ae
mov edx, dword [ebp - 0x28]
lea eax, [edx + eax - 2]
mov dword [edi + 0x44], eax
jmp 0x100486ae
push 0x24b
push str.for_stop.c
push 2
push 8
call fcn.100149ac
add esp, 0x10
movzx eax, byte [edi + 0x128]
mov edx, dword [edi + 0x3c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
test al, 4
je 0x100486d7
movzx eax, byte [edi + 0x12a]
test al, 0x40
je 0x100486d7
movzx eax, byte [edi + 0x12b]
test al, 4
je 0x100486d7
movsx eax, byte [edi + 0x11c]
cmp eax, 1
je 0x10048720
movsx eax, byte [edi + 0x11e]
cmp eax, 2
jne 0x100486fa
movsx eax, byte [edi + 0x11c]
cmp eax, 7
je 0x10048720
cmp eax, 6
je 0x10048720
add dword [edi + 0x44], 0xffffffff
jmp 0x10048720
cmp eax, 1
jne 0x10048720
movsx eax, byte [edi + 0x11c]
cmp eax, 7
je 0x10048714
cmp eax, 6
je 0x10048714
add dword [edi + 0x44], 0xffffffff
mov eax, dword [ebp - 0x28]
add eax, 5
mov dword [ebp - 0x28], eax
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 4]
movsx edx, byte [eax + 0x11e]
cmp edx, 1
jne 0x100488dc
mov eax, dword [eax + 0x3c]
mov byte [eax], 0x20
mov edx, dword [ebp - 4]
add dword [edx + 0x3c], 1
mov eax, dword [ebp - 4]
jmp 0x100488dc
push 0
push edi
call fcn.1002b60c
add esp, 8
test eax, eax
je 0x10048809
mov edx, dword [edi + 0x18]
test edx, edx
je 0x10048995
movzx eax, byte [edx + 0x3c]
test al, 2
je 0x100487aa
mov eax, 0x26
mov dword [edx + 0x30], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x34], eax
mov eax, dword [edi + 0x64]
test eax, eax
je 0x10048798
xor edx, edx
mov dword [eax + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
movzx ecx, byte [edi + 0x12b]
movzx ebx, byte [edi + 0x12c]
mov edx, ecx
and edx, 0x40
mov esi, 2
xor eax, eax
test edx, edx
setne al
test ecx, 0x80
jne 0x100487d6
mov esi, 0
test bl, 1
mov edx, 4
jne 0x100487e5
mov edx, 0
or eax, esi
or eax, edx
mov edx, 0x26
push edx
push edx
push eax
push 0xffffffffffffffff
push edi
call fcn.10077ea0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
movsx eax, byte [edi + 0x11c]
add eax, 0xffffffff
cmp eax, 6
ja case.default.0x10048823
mov eax, dword [eax*4 + 0x100bfdc0]
jmp eax
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x1004882f
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0xc0]
mov dword [edi + 0x3c], eax
lea eax, [eax + edx - 1]
mov dword [edi + 0x44], eax
mov eax, dword [ebp - 4]
jmp 0x100488dc
mov edx, dword [edi + 0x40]
mov eax, 1
mov word [ebp - 0x4c], ax
test edx, edx
je 0x100489b4
mov eax, 1
mov byte [edx + 2], al
mov edx, dword [edi + 0x40]
mov byte [edx + 3], 0
mov edx, dword [edi + 0x40]
add edx, 4
mov eax, dword [edi + 0xc0]
mov dword [edi + 0x3c], edx
add edx, eax
mov dword [edi + 0x44], edx
mov eax, dword [ebp - 4]
jmp 0x100488dc
mov edx, dword [edi + 0x40]
test edx, edx
je 0x100489d4
add edx, 4
mov eax, dword [edi + 0xc0]
mov dword [edi + 0x3c], edx
lea edx, [edx + eax - 8]
mov dword [edi + 0x44], edx
mov eax, dword [ebp - 4]
jmp 0x100488dc
mov edx, dword [edi + 0x40]
test edx, edx
jne 0x100488b0
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0xc0]
mov dword [edi + 0x3c], edx
add edx, eax
mov dword [edi + 0x44], edx
mov eax, dword [ebp - 4]
jmp 0x100488dc
push 0x251
push str.for_stop.c
push 2
push 8
call fcn.100149ac
add esp, 0x10
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
test edx, edx
jle 0x100489e5
mov ecx, edx
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp - 0x1c]
xor edx, edx
jmp 0x100488f6
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x3c]
movzx eax, byte [edx + esi]
mov byte [edi + edx], al
add edx, 1
cmp edx, ecx
jl 0x100488f3
jmp 0x100489df
call fcn.10017fdc
mov eax, dword [0x100d9158]
test eax, eax
jne 0x10048926
push 0
call fcn.10090e55
jmp 0x10048ddc
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 8]
mov dword [0x100d8cec], 0
cmp eax, 1
je 0x10048940
mov edx, 0
push edx
call fcn.1007ee4c
pop ecx
jmp 0x1004891a
push edi
mov eax, 0x26
push eax
push eax
push 1
call fcn.10014254
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
push edi
mov eax, 0x2c
push eax
push eax
push 1
call fcn.10014254
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x38]
add eax, 4
mov dword [ebp - 0x28], eax
jmp 0x10048603
push edi
mov eax, 0x26
push eax
push eax
push 1
call fcn.10014254
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp - 0x4b]
mov ecx, dword [edi + 0x38]
mov edx, 1
mov byte [ecx + 2], dl
mov edx, dword [edi + 0x38]
mov byte [edx + 3], al
mov edx, dword [edi + 0x38]
add edx, 4
jmp 0x10048870
mov edx, dword [edi + 0x38]
add edx, 4
jmp 0x10048891
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
test ebx, ebx
jle 0x10048a0a
mov edx, dword [ebp - 0x18]
xor ecx, ecx
jmp 0x100489f3
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x3c]
movzx eax, byte [esi + ecx]
mov byte [edi + edx], al
add edx, 1
add ecx, 1
cmp ecx, ebx
jl 0x100489f0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
add edx, ebx
add dword [eax + 0x3c], edx
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x12a]
test al, 0x40
je 0x10048a28
push edx
call fcn.1002b904
jmp 0x10048a2e
push edx
call fcn.1002d050
pop ecx
test eax, eax
je 0x10048af3
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x10048ad9
movzx ecx, byte [ebx + 0x3c]
test cl, 2
je 0x10048a7c
mov dword [ebx + 0x30], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x34], eax
mov ebx, dword [ebp - 4]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x10048a6f
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
push eax
push eax
movzx esi, byte [edx + 0x12b]
movzx edi, byte [edx + 0x12c]
mov ebx, esi
and ebx, 0x40
xor ecx, ecx
test ebx, ebx
setne cl
test esi, 0x80
mov ebx, 2
jne 0x10048aaa
mov ebx, 0
test edi, 1
mov esi, 4
jne 0x10048abc
mov esi, 0
or ecx, ebx
or ecx, esi
push ecx
push 0xffffffffffffffff
push edx
call fcn.10077ea0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
push edx
push eax
push eax
push 1
call fcn.10014254
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push dword [eax + 0xc8]
call fcn.100260c0
pop ecx
call fcn.10017fdc
mov eax, dword [0x100d9158]
test eax, eax
jne 0x10048b2b
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 8]
cmp eax, 1
je 0x10048b20
mov edx, 0
push edx
call fcn.10090e55
jmp 0x10048ddc
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 8]
mov dword [0x100d8cec], 0
cmp eax, 1
je 0x10048b45
mov edx, 0
push edx
call fcn.1007ee4c
pop ecx
jmp 0x10048b10
movzx eax, byte [ebp + 0x12]
movzx ecx, byte [edi + 0x128]
and ecx, 0xfffffffd
and eax, 4
shr eax, 2
and eax, 1
add eax, eax
or ecx, eax
mov byte [edi + 0x128], cl
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x128]
and edx, 0xfffffffe
movzx edi, byte [ebp + 0x10]
and edi, 0xffffff80
shr edi, 7
and edi, 1
or edx, edi
mov byte [eax + 0x128], dl
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp + 0x13]
movzx eax, byte [ecx + 0x128]
and edx, 8
shr edx, 3
and edx, 1
mov dword [ebp - 0x20], edx
and eax, 0xfffffffb
shl edx, 2
or eax, edx
mov byte [ecx + 0x128], al
movzx eax, byte [ebp + 0x13]
test eax, 0x80
je 0x10048bd1
lea eax, [ebp + 0x1f]
and eax, 0xfffffffc
mov edx, dword [eax]
mov dword [ebp - 0x4c], edx
jmp 0x10048bd6
xor eax, eax
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp + 0x13]
movzx eax, byte [ecx + 0x128]
and eax, 0xfffffff7
and edx, 4
shr edx, 2
and edx, 1
shl edx, 3
or eax, edx
mov edx, dword [ebp - 0x20]
mov byte [ecx + 0x128], al
mov ecx, edx
mov edi, dword [ebp - 4]
movzx eax, byte [edi + 0x128]
and eax, 0xffffffdf
shl ecx, 5
or eax, ecx
movzx ecx, byte [ebp + 0x13]
mov byte [edi + 0x128], al
mov edi, dword [ebp - 4]
movzx eax, byte [edi + 0x131]
and eax, 0xfffffffe
and ecx, 0x10
shr ecx, 4
and ecx, 1
or eax, ecx
mov byte [edi + 0x131], al
add edx, edx
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + 0x131]
and eax, 0xfffffffd
or eax, edx
movzx edx, byte [ebp + 0x13]
mov byte [ecx + 0x131], al
mov edi, dword [ebp - 4]
movzx eax, byte [edi + 0x128]
and edx, 0x20
shr edx, 5
and edx, 1
and eax, 0xffffffbf
mov ecx, edx
shl ecx, 6
or eax, ecx
mov byte [edi + 0x128], al
shl edx, 7
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x4c]
movzx eax, byte [ecx + 0x128]
and eax, 0x7f
or eax, edx
mov byte [ecx + 0x128], al
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + 0x129]
and ecx, 0xfffffffe
mov eax, edi
and eax, 1
or ecx, eax
mov byte [edx + 0x129], cl
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x131]
and edx, 0xfffffff7
mov eax, edi
and eax, 2
shr eax, 1
and eax, 1
shl eax, 3
or edx, eax
mov byte [ecx + 0x131], dl
and edi, 0xc
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x129]
and eax, 0xfffffff9
shr edi, 2
and edi, 3
add edi, edi
or eax, edi
mov byte [edx + 0x129], al
mov eax, 1
push eax
push 4
push eax
push dword [ebp - 4]
call fcn.1002b098
add esp, 0x10
test eax, eax
je 0x10048dad
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x10048db5
movzx ecx, byte [ebx + 0x3c]
test cl, 2
je 0x10048d50
mov dword [ebx + 0x30], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x34], eax
mov ebx, dword [ebp - 4]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x10048d43
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
push eax
push eax
movzx esi, byte [edx + 0x12b]
movzx edi, byte [edx + 0x12c]
mov ebx, esi
and ebx, 0x40
xor ecx, ecx
test ebx, ebx
setne cl
test esi, 0x80
mov ebx, 2
jne 0x10048d7e
mov ebx, 0
test edi, 1
mov esi, 4
jne 0x10048d90
mov esi, 0
or ecx, ebx
or ecx, esi
push ecx
push 0xffffffffffffffff
push edx
call fcn.10077ea0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
jmp 0x1004843f
push edx
push eax
push eax
push 2
call fcn.10014254
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [0x100d8cec], eax
push eax
call fcn.10090e55
pop ecx
nop
nop
nop