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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5c1334]
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.0x4b576a.1
jmp dword [edx*4 + 0x4b5b54]
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x4b579c
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.00528802
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 0x4b57ef
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 0x4b57f3
push ecx
push edx
mov ecx, ebx
call fcn.004ad0a0
add esp, 8
jmp 0x4b57f3
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.004aeb20
add esp, 0x10
test eax, eax
jne 0x4b5ac2
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4b5ac2
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.004a4150
mov ecx, ebx
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b5853
sub ecx, edx
lea edx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x4b5860
mov eax, dword [ebp - 0x50]
sub edi, edx
cmp dword [eax + 0x364], 0
lea ebx, [edi + ecx]
lea edi, [ebx + 4]
je 0x4b58a7
mov edx, dword [eax + 0x8f78]
mov ecx, dword [eax + 0x8f7c]
mov eax, edx
and eax, ecx
cmp eax, 0xffffffff
je 0x4b58a7
push ecx
push edx
push str._I64d
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.004a4150
add esp, 0x14
jmp 0x4b58b0
mov eax, 0x30
mov word [ebp - 0x48], ax
mov edx, dword [esi + 0x154]
lea eax, [ebx + 0xa]
cmp eax, edx
jbe 0x4b58c4
mov eax, 4
jmp 0x4b58ea
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 0x4b58d1
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 0x4b58f3
sub ecx, ebx
lea eax, [edi + 1]
add eax, ecx
cmp eax, edx
ja 0x4b5930
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 0x4b5910
lea ecx, [ebp - 0x48]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b5924
sub ecx, edx
inc edi
add edi, ecx
push dword [esi + 0x158]
lea eax, [ebp - 0x48]
push 0x59b238
push 0x40
push eax
call fcn.004a4150
mov edx, dword [esi + 0x154]
lea eax, [edi + 8]
add esp, 0x10
cmp eax, edx
jbe 0x4b595a
xor eax, eax
jmp 0x4b5980
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 0x4b5967
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 0x4b5988
sub ecx, ebx
lea eax, [edi + 1]
add eax, ecx
cmp eax, edx
ja 0x4b59cc
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 0x4b59a5
lea ecx, [ebp - 0x48]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b59c0
sub ecx, edx
inc edi
add edi, ecx
push dword [esi + 0x1c]
lea eax, [ebp - 0x48]
push 0x59b238
push 0x40
push eax
call fcn.004a4150
mov edx, dword [esi + 0x154]
lea eax, [edi + 8]
add esp, 0x10
cmp eax, edx
jbe 0x4b59f3
xor eax, eax
jmp 0x4b5a19
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 0x4b5a00
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 0x4b5a21
sub ecx, ebx
lea eax, [edi + 1]
add eax, ecx
cmp eax, edx
ja 0x4b5a60
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 0x4b5a40
lea ecx, [ebp - 0x48]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b5a54
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 0x4b5aa3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.00490350
push eax
push 0x5974d0
push dword [ebp - 0x50]
call fcn.00494100
add esp, 0xc
push dword [ebp - 0x4c]
call dword [0x5c1c7c]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
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.00528802
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x364], 0
mov edx, 6
je 0x4b5b1c
call fcn.004b56b0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
mov edx, 4
call fcn.004b56b0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
mov edx, 3
call fcn.004b56f0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
push str.tftp_send_first:_internal_error
push ebx
call fcn.00494100
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00528802
mov esp, ebp
pop ebp
ret