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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
push edi
mov edi, dword [ecx]
xor ebx, ebx
mov dword [esp + 0x10], str.octet
mov dword [esp + 0x18], ebx
cmp byte [edi + 0x247], bl
je 0x438a9c
mov dword [esp + 0x10], str.netascii
cmp eax, 6
ja case.0x438aa5.1
jmp dword [eax*4 + 0x438c8c]
mov ebx, 1
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x1c]
jle 0x438ad3
pop edi
mov dword [esi + 8], 0xffffff9e
mov dword [esi], 3
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
cmp byte [edi + 0x255], 0
lea ebp, [esi + 0x348]
mov byte [ebp], 0
je 0x438b1d
mov byte [ebp + 1], 2
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
lea edx, [esi + 0x34c]
mov dword [ecx + 0xd4], edx
mov eax, dword [edi + 0x180]
mov ecx, dword [edi + 0x184]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x438b20
push ecx
push eax
push edi
call fcn.00434bd0
add esp, 0xc
jmp 0x438b20
mov byte [ebp + 1], bl
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x850c]
push 0
push 0
add edx, ebx
push edx
push edi
call fcn.0043e890
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x438b50
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
push 0
push eax
push 0
push ebx
push str._s_c_s_c
lea ecx, [esi + 0x34a]
push 0x200
push ecx
call fcn.004279d0
mov eax, ebx
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438b78
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x10]
lea ebx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438b90
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + 0x38]
sub eax, ebx
mov ebx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x18]
push ebx
push ecx
push 0
lea edx, [eax + edx + 4]
mov eax, dword [esi + 0x10]
push edx
push ebp
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x438bdc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.00428eb0
push eax
push 0x4daabc
push edi
call fcn.00425ca0
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call fcn.00429570
mov ebx, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
push str.Connected_for_transmit
push 0x4dd030
push edi
call fcn.00425c10
add esp, 0xc
mov dword [esi], 2
call fcn.004383d0
mov ebx, eax
test ebx, ebx
jne 0x438c81
push 4
call fcn.004386f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push str.Connected_for_receive
push 0x4dd030
push edi
call fcn.00425c10
add esp, 0xc
mov dword [esi], 1
call fcn.004383d0
mov ebx, eax
test ebx, ebx
jne 0x438c81
push 3
call fcn.00438550
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
mov dword [esi], 3
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
push str.tftp_send_first:_internal_error
push edi
call fcn.00425ca0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov ecx, dword [esi]
push edi
xor edi, edi
cmp ecx, 3
ja case.default.0x438cc2
jmp dword [ecx*4 + 0x438d20]
pop edi
mov ecx, esi
pop esi
jmp 0x438a70
push eax
call fcn.00438550
add esp, 4
pop edi
pop esi
ret
push eax
call fcn.004386f0
add esp, 4
pop edi
pop esi
ret
push str.TFTP_finished
push 0x4dd030
push edx
call fcn.00425c10
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret
push str.Internal_state_machine_error
push 0x4daabc
push edx
call fcn.00425ca0
add esp, 0xc
pop edi
mov eax, 0x47
pop esi
ret