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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
xor edx, edx
push edi
mov dword [ebp - 0x4c], str.octet
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], edx
cmp dword [ebx + 0x2ec], edx
je 0x47c149
mov dword [ebp - 0x4c], str.netascii
mov eax, dword [ebp + 8]
sub eax, edx
push 3
pop ecx
je 0x47c1a0
sub eax, ecx
je 0x47c198
dec eax
je 0x47c194
dec eax
je 0x47c18d
dec eax
je 0x47c174
dec eax
je 0x47c1a0
push str.tftp_send_first:_internal_error
push ebx
call fcn.004707df
pop ecx
jmp 0x47c39a
push 6
cmp dword [ebx + 0x324], edx
je 0x47c199
mov eax, esi
call fcn.0047c0a2
mov dword [ebp - 0x48], eax
jmp 0x47c39a
mov dword [esi], ecx
jmp 0x47c39b
push 4
jmp 0x47c17e
push ecx
call fcn.0047c0dc
jmp 0x47c185
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x47c1bb
mov dword [esi + 8], 0xffffff9e
mov dword [esi], ecx
xor eax, eax
jmp 0x47c39e
lea edi, [esi + 0x160]
mov eax, edi
cmp dword [ebx + 0x324], edx
je 0x47c205
push 2
pop ecx
call fcn.0047b649
mov eax, dword [edi]
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx]
add eax, 4
mov dword [ecx + 0x114], eax
mov eax, dword [ebx + 0x86e8]
mov ecx, dword [ebx + 0x86ec]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x47c20d
push ecx
push eax
push ebx
call fcn.00488f1d
add esp, 0xc
jmp 0x47c20d
xor ecx, ecx
inc ecx
call fcn.0047b649
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x86b8]
push 0
push 0
inc eax
push eax
push ebx
call fcn.0048872c
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x54], ebx
test ebx, ebx
jne 0x47c238
push 0x1b
pop eax
jmp 0x47c39e
mov eax, dword [edi]
push 0
push dword [ebp - 0x4c]
add eax, 2
push 0
push ebx
push str._s_c_s_c
push dword [esi + 0x154]
push eax
call fcn.00473e4e
push ebx
call fcn.00495f10
push dword [ebp - 0x4c]
mov ebx, eax
call fcn.00495f10
lea ebx, [ebx + eax + 4]
mov eax, dword [ebp - 0x50]
add esp, 0x24
cmp dword [eax + 0x324], 0
je 0x47c2a5
mov ecx, dword [eax + 0x86e8]
mov eax, dword [eax + 0x86ec]
mov edx, ecx
and edx, eax
cmp edx, 0xffffffff
je 0x47c2a5
push eax
push ecx
push str._I64d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00473e4e
add esp, 0x14
jmp 0x47c2b5
lea eax, [ebp - 0x44]
push 0x4dd36c
push eax
call fcn.0049a4d0
pop ecx
pop ecx
mov eax, dword [edi]
push str.tsize
add eax, ebx
push eax
push ebx
push esi
call fcn.0047b897
add ebx, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi]
add eax, ebx
push eax
push ebx
push esi
call fcn.0047b897
push dword [esi + 0x158]
add ebx, eax
push 0x4cdd40
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00473e4e
mov eax, dword [edi]
push str.blksize
add eax, ebx
push eax
push ebx
push esi
call fcn.0047b897
add ebx, eax
add esp, 0x40
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi]
add eax, ebx
push eax
push ebx
push esi
call fcn.0047b897
push dword [esi + 0x1c]
add ebx, eax
push 0x4cdd40
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00473e4e
mov eax, dword [edi]
push str.timeout
add eax, ebx
push eax
push ebx
push esi
call fcn.0047b897
add ebx, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi]
add eax, ebx
push eax
push ebx
push esi
call fcn.0047b897
add esp, 0x40
add ebx, eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x4c]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push ebx
push dword [edi]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, ebx
je 0x47c391
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.004750b3
push eax
push 0x4cdf5c
push dword [ebp - 0x50]
call fcn.004707df
add esp, 0x14
push dword [ebp - 0x54]
call dword [0x4ff384]
pop ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret