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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x5bf23c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edx, str.netascii
push 3
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
mov eax, str.octet
mov ecx, dword [edi + 0xa8c]
test ecx, 0x800
cmovne eax, edx
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0xc]
pop edx
sub eax, ebx
je 0x4a3c6d
sub eax, edx
je 0x4a3c64
sub eax, 1
je 0x4a3c5f
sub eax, 1
je 0x4a3c58
sub eax, 1
je 0x4a3c40
sub eax, 1
je 0x4a3c6d
push str.tftp_send_first:_internal_error
push edi
call fcn.0048bd13
pop ecx
jmp 0x4a3f76
push 6
push esi
test ecx, 0x2000000
je 0x4a3c66
call fcn.004a34ac
pop ecx
mov ebx, eax
jmp 0x4a3f76
mov dword [esi], edx
jmp 0x4a3f77
push 4
push esi
jmp 0x4a3c4b
push edx
push esi
call fcn.004a3470
jmp 0x4a3c50
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x4a3c88
mov dword [esi + 8], 0xffffff9e
xor eax, eax
mov dword [esi], edx
jmp 0x4a3f79
mov eax, dword [esi + 0x160]
xor ebx, ebx
test dword [edi + 0xa8c], 0x2000000
mov byte [eax], bl
mov eax, dword [esi + 0x160]
je 0x4a3cde
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 + 0x150], ecx
mov ecx, dword [edi + 0xf00]
mov eax, ecx
mov edx, dword [edi + 0xf04]
and eax, edx
cmp eax, 0xffffffff
je 0x4a3ce2
push edx
push ecx
push edi
call fcn.00497d4a
add esp, 0xc
jmp 0x4a3ce2
mov byte [eax + 1], 1
push ebx
push ebx
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [esi + 0x10]
push ebx
mov eax, dword [eax]
mov eax, dword [eax + 0xf38]
inc eax
push eax
push edi
call fcn.0049ff49
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4a3f77
mov edx, dword [ebp - 0x8c]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a3d15
sub edx, ecx
mov ecx, dword [ebp - 0x88]
lea eax, [ecx + 1]
mov dword [ebp - 0x90], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a3d2d
sub ecx, dword [ebp - 0x90]
mov eax, dword [esi + 0x154]
sub eax, ecx
mov ecx, dword [ebp - 0x88]
sub eax, 4
cmp edx, eax
jbe 0x4a3d71
push str.TFTP_file_name_too_long_n
push edi
call fcn.0048bd13
push dword [ebp - 0x8c]
call dword [0x5bf030]
add esp, 0xc
push 0x47
pop eax
jmp 0x4a3f79
mov eax, dword [esi + 0x160]
push 0
push ecx
push 0
push dword [ebp - 0x8c]
add eax, 2
push str._s_c_s_c
push dword [esi + 0x154]
push eax
call fcn.00499e9c
mov edx, dword [ebp - 0x8c]
add esp, 0x1c
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a3da2
sub edx, ecx
mov ecx, dword [ebp - 0x88]
lea eax, [ecx + 1]
mov dword [ebp - 0x90], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a3dba
sub ecx, dword [ebp - 0x90]
mov eax, dword [edi + 0xa8c]
add ecx, 4
add ecx, edx
mov dword [ebp - 0x88], ecx
test al, 8
jne 0x4a3f1d
test eax, 0x2000000
je 0x4a3e1c
mov edx, dword [edi + 0xf00]
mov eax, edx
and eax, dword [edi + 0xf04]
cmp eax, 0xffffffff
je 0x4a3e1c
push dword [edi + 0xf04]
lea eax, [ebp - 0x44]
push edx
push str._I64d
push 0x40
push eax
call fcn.00499e9c
mov ecx, dword [ebp - 0x88]
add esp, 0x14
jmp 0x4a3e23
push 0x30
pop eax
mov word [ebp - 0x44], ax
mov eax, dword [esi + 0x160]
push str.tsize
add eax, ecx
push eax
push ecx
push esi
call fcn.004a34e8
mov ecx, dword [ebp - 0x88]
add ecx, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi + 0x160]
add eax, ecx
mov dword [ebp - 0x88], ecx
push eax
push ecx
push esi
call fcn.004a34e8
push dword [esi + 0x158]
add dword [ebp - 0x88], eax
lea eax, [ebp - 0x44]
push 0x5a79fc
push 0x40
push eax
call fcn.00499e9c
mov eax, dword [esi + 0x160]
mov ecx, dword [ebp - 0x88]
add eax, ecx
push str.blksize
push eax
push ecx
push esi
call fcn.004a34e8
mov ecx, dword [ebp - 0x88]
add esp, 0x40
add ecx, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x88], ecx
push eax
mov eax, dword [esi + 0x160]
add eax, ecx
push eax
push ecx
push esi
call fcn.004a34e8
push dword [esi + 0x1c]
add dword [ebp - 0x88], eax
lea eax, [ebp - 0x44]
push 0x5a79fc
push 0x40
push eax
call fcn.00499e9c
mov eax, dword [esi + 0x160]
mov ecx, dword [ebp - 0x88]
add eax, ecx
push str.timeout
push eax
push ecx
push esi
call fcn.004a34e8
mov ecx, dword [ebp - 0x88]
add ecx, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi + 0x160]
add eax, ecx
mov dword [ebp - 0x88], ecx
push eax
push ecx
push esi
call fcn.004a34e8
mov ecx, dword [ebp - 0x88]
add esp, 0x40
add ecx, eax
mov dword [ebp - 0x88], ecx
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x50]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push ecx
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, dword [ebp - 0x88]
je 0x4a3f6a
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b0ea4
push eax
push 0x5a8bc8
push edi
call fcn.0048bd13
add esp, 0x18
push dword [ebp - 0x8c]
call dword [0x5bf030]
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fc837
mov esp, ebp
pop ebp
ret