Function at 0x10087df7
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0xbec], 0
push ebx
mov ebx, eax
je 0x10087f69
mov eax, dword [esp + 8]
push ebp
push edi
xor edi, edi
test eax, eax
je 0x10087dac
cmp eax, 0x3c
mov eax, str.RCVD
je 0x10087ccf
mov eax, str.SENT
push eax
push str._s_IAC_SB
push esi
call fcn.1007fb40
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 3
jb 0x10087da3
movzx edi, byte [ebx + eax - 2]
movzx ebp, byte [ebx + eax - 1]
cmp edi, 0xff
jne 0x10087d09
cmp ebp, 0xf0
je 0x10087da3
push str._terminated_by
push esi
call fcn.1007fb40
add esp, 8
cmp edi, 0x27
ja 0x10087d2b
mov eax, dword [edi*4 + 0x101b17d8]
push eax
push 0x101b1a54
jmp 0x10087d4b
lea ecx, [edi - 0xec]
cmp ecx, 0x13
ja 0x10087d45
mov edx, dword [edi*4 + 0x101b14c8]
push edx
push 0x101b1a54
jmp 0x10087d4b
push edi
push 0x101b1a50
push esi
call fcn.1007fb40
add esp, 0xc
cmp ebp, 0x27
jg 0x10087d68
mov eax, dword [ebp*4 + 0x101b17d8]
push eax
push 0x10201190
jmp 0x10087d88
lea ecx, [ebp - 0xec]
cmp ecx, 0x13
ja 0x10087d82
mov edx, dword [ebp*4 + 0x101b14c8]
push edx
push 0x10201190
jmp 0x10087d88
push ebp
push 0x101af9bc
push esi
call fcn.1007fb40
add esp, 0xc
push str.__not_IAC_SE__
push esi
call fcn.1007fb40
mov eax, dword [esp + 0x1c]
add esp, 8
sub eax, 2
mov dword [esp + 0x14], eax
jmp 0x10087db0
mov eax, dword [esp + 0x14]
cmp eax, 1
jae 0x10087dc9
pop edi
pop ebp
pop ebx
mov dword [esp + 8], str._Empty_suboption__
mov dword [esp + 4], esi
jmp fcn.1007fb40
mov al, byte [ebx]
cmp al, 0x27
ja 0x10087e06
movzx eax, al
lea ecx, [eax - 0x18]
cmp ecx, 0xf
ja case.0x10087de1.25
movzx ecx, byte [ecx + 0x10087f74]
jmp dword [ecx*4 + 0x10087f6c]
mov edx, dword [eax*4 + 0x101b17d8]
push edx
push 0x10201190
jmp 0x10087e10
mov eax, dword [eax*4 + 0x101b17d8]
push eax
push str._s__unsupported_
jmp 0x10087e10
movzx ecx, byte [edi + ebx]
push ecx
push str._d__unknown_
push esi
call fcn.1007fb40
add esp, 0xc
cmp byte [ebx], 0x1f
je 0x10087f1d
movzx eax, byte [ebx + 1]
cmp eax, 3
ja case.default.0x10087e2b
jmp dword [eax*4 + 0x10087f84]
push 0x101b1a04
jmp 0x10087e4c
push str._SEND
jmp 0x10087e4c
push str._INFO_REPLY
jmp 0x10087e4c
push str._NAME
push esi
call fcn.1007fb40
add esp, 8
mov al, byte [ebx]
cmp al, 0x18
je 0x10087f01
cmp al, 0x23
je 0x10087f01
cmp al, 0x27
je 0x10087e9d
mov ebp, dword [esp + 0x14]
mov edi, 2
cmp ebp, edi
jbe 0x10087f4e
lea esp, [esp]
movzx edx, byte [edi + ebx]
push edx
push str.__.2x
push esi
call fcn.1007fb40
inc edi
add esp, 0xc
cmp edi, ebp
jb 0x10087e80
jmp 0x10087f4e
cmp byte [ebx + 1], 0
jne 0x10087f4e
push 0x1020335c
push esi
call fcn.1007fb40
mov ebp, dword [esp + 0x1c]
mov edi, 3
add esp, 8
cmp ebp, edi
jbe 0x10087f4e
movzx ecx, byte [edi + ebx]
mov eax, ecx
sub eax, 0
je 0x10087eec
dec eax
je 0x10087ee5
push ecx
push 0x10204af8
push esi
call fcn.1007fb40
add esp, 0xc
jmp 0x10087efa
push 0x10205348
jmp 0x10087ef1
push 0x10203358
push esi
call fcn.1007fb40
add esp, 8
inc edi
cmp edi, ebp
jb 0x10087ec6
jmp 0x10087f4e
mov eax, dword [esp + 0x14]
mov byte [ebx + eax], 0
add ebx, 2
push ebx
push str.___s_
push esi
call fcn.1007fb40
add esp, 0xc
jmp 0x10087f4e
cmp dword [esp + 0x14], 4
jbe 0x10087f4e
movzx ecx, byte [ebx + 3]
movzx edx, byte [ebx + 4]
movzx eax, byte [ebx + 1]
shl ecx, 8
or ecx, edx
push ecx
movzx ecx, byte [ebx + 2]
shl eax, 8
or eax, ecx
push eax
push str.Width:__d___Height:__d
push esi
call fcn.1007fb40
add esp, 0x10
cmp dword [esp + 0x10], 0
pop edi
pop ebp
je 0x10087f69
pop ebx
mov dword [esp + 8], 0x101fef7c
mov dword [esp + 4], esi
jmp fcn.1007fb40
pop ebx
ret