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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, str.octet
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
mov eax, str.netascii
mov dword [ebp - 0x50], ebx
cmp dword [ebx + 0x32c], 0
cmovne edi, eax
cmp edx, 7
ja case.0x4b203a.1
jmp dword [edx*4 + 0x4b2424]
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x4b206c
mov dword [esi + 8], 0xffffff9e
mov dword [esi], 3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x160]
cmp dword [ebx + 0x364], 0
mov byte [eax], 0
mov eax, dword [esi + 0x160]
je 0x4b20bf
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 + 0x154], ecx
mov edx, dword [ebx + 0x8f78]
mov eax, edx
mov ecx, dword [ebx + 0x8f7c]
and eax, ecx
cmp eax, 0xffffffff
je 0x4b20c3
push ecx
push edx
mov ecx, ebx
call fcn.004a9980
add esp, 8
jmp 0x4b20c3
mov byte [eax + 1], 1
mov eax, dword [esi + 0x10]
push 0
mov dword [ebp - 0x4c], 0
mov eax, dword [eax]
mov edx, dword [eax + 0x8f48]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
inc edx
push eax
push 0
call fcn.004ab400
add esp, 0x10
test eax, eax
jne 0x4b2392
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4b2392
push eax
push edi
push eax
mov eax, dword [esi + 0x160]
push ebx
push str._s_c_s_c
push dword [esi + 0x154]
add eax, 2
push eax
call fcn.004a0a20
mov ecx, ebx
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b2123
sub ecx, edx
lea edx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x4b2130
mov eax, dword [ebp - 0x50]
sub edi, edx
cmp dword [eax + 0x364], 0
lea ebx, [edi + ecx]
lea edi, [ebx + 4]
je 0x4b2177
mov edx, dword [eax + 0x8f78]
mov ecx, dword [eax + 0x8f7c]
mov eax, edx
and eax, ecx
cmp eax, 0xffffffff
je 0x4b2177
push ecx
push edx
push str._I64d
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.004a0a20
add esp, 0x14
jmp 0x4b2180
mov eax, 0x30
mov word [ebp - 0x48], ax
mov edx, dword [esi + 0x154]
lea eax, [ebx + 0xa]
cmp eax, edx
jbe 0x4b2194
mov eax, 4
jmp 0x4b21ba
mov ecx, dword [esi + 0x160]
mov edx, str.tsize
add ecx, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4b21a1
mov edx, dword [esi + 0x154]
mov eax, 0xa
lea ecx, [ebp - 0x48]
lea edi, [ebx + eax]
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b21c3
sub ecx, ebx
lea eax, [edi + 1]
add eax, ecx
cmp eax, edx
ja 0x4b2200
mov ecx, dword [esi + 0x160]
lea edx, [ebp - 0x48]
add ecx, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4b21e0
lea ecx, [ebp - 0x48]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b21f4
sub ecx, edx
inc edi
add edi, ecx
push dword [esi + 0x158]
lea eax, [ebp - 0x48]
push 0x596e60
push 0x40
push eax
call fcn.004a0a20
mov edx, dword [esi + 0x154]
lea eax, [edi + 8]
add esp, 0x10
cmp eax, edx
jbe 0x4b222a
xor eax, eax
jmp 0x4b2250
mov ecx, dword [esi + 0x160]
mov edx, str.blksize
add ecx, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4b2237
mov edx, dword [esi + 0x154]
mov eax, 8
lea ecx, [ebp - 0x48]
add edi, eax
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b2258
sub ecx, ebx
lea eax, [edi + 1]
add eax, ecx
cmp eax, edx
ja 0x4b229c
mov ecx, dword [esi + 0x160]
lea edx, [ebp - 0x48]
add ecx, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4b2275
lea ecx, [ebp - 0x48]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b2290
sub ecx, edx
inc edi
add edi, ecx
push dword [esi + 0x1c]
lea eax, [ebp - 0x48]
push 0x596e60
push 0x40
push eax
call fcn.004a0a20
mov edx, dword [esi + 0x154]
lea eax, [edi + 8]
add esp, 0x10
cmp eax, edx
jbe 0x4b22c3
xor eax, eax
jmp 0x4b22e9
mov ecx, dword [esi + 0x160]
mov edx, str.timeout
add ecx, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4b22d0
mov edx, dword [esi + 0x154]
mov eax, 8
lea ecx, [ebp - 0x48]
add edi, eax
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b22f1
sub ecx, ebx
lea eax, [edi + 1]
add eax, ecx
cmp eax, edx
ja 0x4b2330
mov ecx, dword [esi + 0x160]
lea edx, [ebp - 0x48]
add ecx, edi
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4b2310
lea ecx, [ebp - 0x48]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b2324
sub ecx, edx
inc edi
add edi, ecx
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x4c]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push edi
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x4b2373
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.0048cc00
push eax
push 0x5931f0
push dword [ebp - 0x50]
call fcn.004909c0
add esp, 0xc
push dword [ebp - 0x4c]
call dword [0x5bcc7c]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x364], 0
mov edx, 6
je 0x4b23ec
call fcn.004b1f80
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov edx, 4
call fcn.004b1f80
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov edx, 3
call fcn.004b1fc0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
push str.tftp_send_first:_internal_error
push ebx
call fcn.004909c0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00523a6a
mov esp, ebp
pop ebp
ret