Function at 0x10027bb9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, str.netascii
push 3
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov eax, str.octet
mov dword [ebp - 0x50], ecx
cmp dword [ecx + 0x2a4], ebx
cmove edi, eax
pop eax
sub edx, ebx
je 0x10027c45
sub edx, eax
je 0x10027c3f
dec edx
je 0x10027c33
dec edx
je 0x10027c2c
dec edx
je 0x10027c13
dec edx
je 0x10027c45
push str.tftp_send_first:_internal_error
push ecx
call fcn.10018208
pop ecx
jmp 0x10027eec
cmp dword [ecx + 0x2dc], ebx
mov ecx, esi
push 6
pop edx
jne 0x10027c38
call fcn.10027b7d
mov ebx, eax
jmp 0x10027eed
mov dword [esi], eax
jmp 0x10027eed
push 4
pop edx
mov ecx, esi
call fcn.10027b41
jmp 0x10027c25
mov edx, eax
mov ecx, esi
jmp 0x10027c20
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x10027c64
mov dword [esi + 8], 0xffffff9e
xor eax, eax
mov dword [esi], 3
jmp 0x10027eef
mov eax, dword [esi + 0x160]
cmp dword [ecx + 0x2dc], ebx
mov byte [eax], bl
mov eax, dword [esi + 0x160]
je 0x10027cb9
mov byte [eax + 1], 2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x160]
add ecx, 4
mov eax, dword [eax]
mov dword [eax + 0xdc], ecx
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x1b0]
mov eax, edx
and eax, dword [ecx + 0x1b4]
cmp eax, 0xffffffff
je 0x10027cbd
push dword [ecx + 0x1b4]
push edx
call fcn.1001fc7b
add esp, 8
jmp 0x10027cbd
mov byte [eax + 1], 1
mov eax, dword [esi + 0x10]
push ebx
push ebx
mov eax, dword [eax]
mov edx, dword [eax + 0x8658]
inc edx
call fcn.10029b53
mov dword [ebp - 0x54], eax
pop ecx
pop ecx
test eax, eax
jne 0x10027ce1
push 0x1b
pop eax
jmp 0x10027eef
push ebx
push edi
push ebx
push eax
mov eax, dword [esi + 0x160]
push str._s_c_s_c
push dword [esi + 0x154]
add eax, 2
push eax
call fcn.1001ea20
mov ecx, dword [ebp - 0x54]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10027d08
sub ecx, edx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10027d14
mov eax, dword [ebp - 0x50]
sub edi, edx
add edi, 4
add edi, ecx
cmp dword [eax + 0x2dc], ebx
je 0x10027d59
mov ecx, dword [eax + 0x1b0]
mov edx, dword [eax + 0x1b4]
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
je 0x10027d59
push edx
push ecx
push str._lld
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.1001ea20
add esp, 0x14
jmp 0x10027d60
push 0x30
pop eax
mov word [ebp - 0x48], ax
mov ecx, dword [esi + 0x160]
lea eax, [edi + 6]
add ecx, edi
cmp eax, dword [esi + 0x154]
jbe 0x10027d77
mov eax, ebx
jmp 0x10027d81
mov edx, str.tsize
call fcn.10027b21
add edi, eax
lea ecx, [ebp - 0x48]
mov eax, dword [esi + 0x160]
lea edx, [ecx + 1]
add eax, edi
mov dword [ebp - 0x4c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10027d94
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x10027dae
mov eax, ebx
jmp 0x10027db9
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.10027b21
push dword [esi + 0x158]
add edi, eax
lea eax, [ebp - 0x48]
push 0x1012fd3c
push 0x40
push eax
call fcn.1001ea20
mov ecx, dword [esi + 0x160]
lea eax, [edi + 8]
add esp, 0x10
add ecx, edi
cmp eax, dword [esi + 0x154]
jbe 0x10027deb
mov eax, ebx
jmp 0x10027df5
mov edx, str.blksize
call fcn.10027b21
add edi, eax
lea ecx, [ebp - 0x48]
mov eax, dword [esi + 0x160]
lea edx, [ecx + 1]
add eax, edi
mov dword [ebp - 0x4c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10027e08
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x10027e22
mov eax, ebx
jmp 0x10027e2d
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.10027b21
push dword [esi + 0x1c]
add edi, eax
lea eax, [ebp - 0x48]
push 0x1012fd3c
push 0x40
push eax
call fcn.1001ea20
mov ecx, dword [esi + 0x160]
lea eax, [edi + 8]
add esp, 0x10
add ecx, edi
cmp eax, dword [esi + 0x154]
jbe 0x10027e5c
mov eax, ebx
jmp 0x10027e66
mov edx, str.timeout
call fcn.10027b21
add edi, eax
lea ecx, [ebp - 0x48]
mov eax, dword [esi + 0x160]
lea edx, [ecx + 1]
add eax, edi
mov dword [ebp - 0x4c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10027e79
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x10027e93
mov eax, ebx
jmp 0x10027e9e
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.10027b21
add edi, eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x3c]
push dword [eax + 0x10]
push dword [eax + 0x18]
push ebx
push edi
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x10027ee3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.10030e33
mov ecx, dword [ebp - 0x50]
push eax
push 0x1012fdc0
push ecx
call fcn.10018208
add esp, 0xc
push dword [ebp - 0x54]
call dword [0x10145380]
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret