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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4d6750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, str.octet
push edi
mov edi, str.netascii
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
cmp dword [ebx + 0x31c], 0
cmove edi, ecx
cmp edx, 7
ja case.0x43cdc7.1
jmp dword [edx*4 + 0x43d144]
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x43cdf9
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.00488366
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x160]
cmp dword [ebx + 0x354], 0
mov byte [eax], 0
mov eax, dword [esi + 0x160]
je 0x43ce4c
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 + 0x14c], ecx
mov edx, dword [ebx + 0x230]
mov eax, edx
mov ecx, dword [ebx + 0x234]
and eax, ecx
cmp eax, 0xffffffff
je 0x43ce50
push ecx
push edx
mov ecx, ebx
call fcn.00433340
add esp, 8
jmp 0x43ce50
mov byte [eax + 1], 1
mov eax, dword [esi + 0x10]
push 0
mov dword [ebp - 0x50], 0
mov eax, dword [eax]
mov edx, dword [eax + 0x8f28]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
inc edx
push eax
push 0
call fcn.004194d0
add esp, 0x10
test eax, eax
jne 0x43d0ac
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x43d0ac
push 0
push edi
push 0
push eax
mov eax, dword [esi + 0x160]
push str._s_c_s_c
push dword [esi + 0x154]
add eax, 2
push eax
call fcn.0041ef60
mov ecx, dword [ebp - 0x50]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43ceb3
sub ecx, edx
lea edx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x43cec0
sub edi, edx
add edi, 4
add edi, ecx
cmp dword [ebx + 0x354], 0
je 0x43cf03
mov edx, dword [ebx + 0x230]
mov eax, edx
mov ecx, dword [ebx + 0x234]
and eax, ecx
cmp eax, 0xffffffff
je 0x43cf03
push ecx
push edx
push str._I64d
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.0041ef60
add esp, 0x14
jmp 0x43cf0c
mov eax, 0x30
mov word [ebp - 0x48], ax
mov ecx, dword [esi + 0x160]
lea eax, [edi + 6]
add ecx, edi
cmp eax, dword [esi + 0x154]
jbe 0x43cf23
xor eax, eax
jmp 0x43cf2d
mov edx, str.tsize
call fcn.0043cce0
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 0x43cf40
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x43cf5a
xor eax, eax
jmp 0x43cf65
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.0043cce0
push dword [esi + 0x158]
add edi, eax
lea eax, [ebp - 0x48]
push 0x4b2e78
push 0x40
push eax
call fcn.0041ef60
mov ecx, dword [esi + 0x160]
lea eax, [edi + 8]
add esp, 0x10
add ecx, edi
cmp eax, dword [esi + 0x154]
jbe 0x43cf97
xor eax, eax
jmp 0x43cfa1
mov edx, str.blksize
call fcn.0043cce0
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 0x43cfb4
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x43cfce
xor eax, eax
jmp 0x43cfd9
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.0043cce0
push dword [esi + 0x1c]
add edi, eax
lea eax, [ebp - 0x48]
push 0x4b2e78
push 0x40
push eax
call fcn.0041ef60
mov ecx, dword [esi + 0x160]
lea eax, [edi + 8]
add esp, 0x10
add ecx, edi
cmp eax, dword [esi + 0x154]
jbe 0x43d008
xor eax, eax
jmp 0x43d012
mov edx, str.timeout
call fcn.0043cce0
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 0x43d025
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x43d03f
xor eax, eax
jmp 0x43d04a
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.0043cce0
add edi, eax
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 0x43d08d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.00449440
push eax
push 0x4b80e0
push ebx
call fcn.004280e0
add esp, 0xc
push dword [ebp - 0x50]
call dword [0x4d75cc]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
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.00488366
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x354], 0
mov edx, 6
mov ecx, esi
je 0x43d10c
call fcn.0043cd10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
mov edx, 4
mov ecx, esi
call fcn.0043cd10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
mov edx, 3
mov ecx, esi
call fcn.0043cd50
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
push str.tftp_send_first:_internal_error
push ebx
call fcn.004280e0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00488366
mov esp, ebp
pop ebp
ret