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

Disassembly:
sub esp, 0x154
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x150], eax
mov ecx, dword [ebx + 0x10]
mov eax, dword [esp + 0x158]
push ebp
push esi
mov esi, dword [ecx]
cmp dword [esi + 0xba8], 0
push edi
mov edi, 0x74fe3c
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0
je 0x47949a
mov edi, 0x74fe30
mov dword [esp + 0xc], edi
cmp eax, 7
ja case.0x4794a3.1
jmp dword [eax*4 + 0x479850]
inc dword [ebx + 0x18]
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x20]
jle 0x4794dc
pop edi
pop esi
mov dword [ebx + 8], 0xffffff9e
mov dword [ebx], 3
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.005635df
add esp, 0x154
ret
cmp dword [esi + 0xbf0], 0
lea ebp, [ebx + 0x160]
mov ecx, ebp
je 0x47952a
mov eax, 2
call fcn.00478570
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp]
mov ecx, dword [eax]
add edx, 4
mov dword [ecx + 0x134], edx
mov eax, dword [esi + 0x11b8]
mov ecx, dword [esi + 0x11bc]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x479534
push ecx
push eax
push esi
call fcn.00472fc0
add esp, 0xc
jmp 0x479534
mov eax, 1
call fcn.00478570
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx]
push 4
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edx + 0x11f0]
push 0
inc eax
push eax
push esi
call fcn.00474010
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
jne 0x479836
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x479568
sub eax, edx
mov edx, eax
mov eax, edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x479578
mov ecx, dword [ebx + 0x154]
sub eax, edi
mov edi, ecx
sub edi, eax
sub edi, 4
cmp edx, edi
jbe 0x4795c8
push 0x74fe14
push esi
call fcn.00463c60
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x7fbab8]
add esp, 0xc
pop edi
pop esi
mov eax, 0x47
pop ebp
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.005635df
add esp, 0x154
ret
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp]
push 0
push edi
push 0
push edx
push 0x74fe08
push ecx
add eax, 2
push eax
call fcn.0046c7a0
mov eax, dword [esp + 0x30]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4795f2
mov ecx, edi
sub eax, edx
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x479600
sub ecx, edi
cmp dword [esi + 0xb88], 0
lea edi, [ecx + eax + 4]
mov dword [esp + 0xc], edi
jne 0x479782
cmp dword [esi + 0xbf0], 0
je 0x479654
mov eax, dword [esi + 0x11b8]
mov esi, dword [esi + 0x11bc]
mov ecx, eax
and ecx, esi
cmp ecx, 0xffffffff
je 0x479654
push esi
push eax
push 0x74fe00
lea edx, [esp + 0x28]
push 0x40
push edx
call fcn.0046c7a0
add esp, 0x14
jmp 0x47965e
mov eax, 0x30
mov word [esp + 0x1c], ax
mov ecx, dword [ebp]
add ecx, edi
push ecx
push ebx
mov esi, 0x74fbcc
lea edi, [esp + 0x14]
call fcn.00478850
mov esi, eax
add esp, 8
test esi, esi
jne 0x479693
mov edx, dword [ebp]
add edx, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push edx
push ebx
call fcn.00478850
add esp, 8
mov esi, eax
mov eax, dword [ebx + 0x158]
push eax
push 0x74baf8
lea ecx, [esp + 0x24]
push 0x40
push ecx
call fcn.0046c7a0
add esp, 0x10
test esi, esi
jne 0x4796e9
mov edx, dword [ebp]
add edx, dword [esp + 0xc]
mov esi, 0x74fc10
push edx
push ebx
lea edi, [esp + 0x14]
call fcn.00478850
mov esi, eax
add esp, 8
test esi, esi
jne 0x4796e9
mov eax, dword [ebp]
add eax, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push eax
push ebx
call fcn.00478850
add esp, 8
mov esi, eax
mov ecx, dword [ebx + 0x1c]
push ecx
push 0x74baf8
lea edx, [esp + 0x24]
push 0x40
push edx
call fcn.0046c7a0
add esp, 0x10
test esi, esi
jne 0x479740
mov eax, dword [ebp]
add eax, dword [esp + 0xc]
mov esi, 0x74fdf8
push eax
push ebx
lea edi, [esp + 0x14]
call fcn.00478850
add esp, 8
test eax, eax
jne 0x479740
mov ecx, dword [ebp]
add ecx, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push ecx
push ebx
call fcn.00478850
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x47977a
mov edx, dword [esp + 0x18]
push 0x74fdd4
push edx
call fcn.00463c60
mov eax, dword [esp + 0x1c]
push eax
call dword [0x7fbab8]
add esp, 0xc
pop edi
pop esi
mov eax, 0x47
pop ebp
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.005635df
add esp, 0x154
ret
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 0x2b8]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp]
push edx
mov edx, dword [ebx + 0x14]
push eax
push 0
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x4797cd
push 0x100
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00491d10
push eax
push 0x74def4
push esi
call fcn.00463c60
add esp, 0x18
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x7fbab8]
add esp, 4
jmp 0x479832
cmp dword [esi + 0xbf0], 0
push 6
je 0x47980c
mov eax, ebx
call fcn.004793d0
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x479832
push 4
mov eax, ebx
call fcn.004793d0
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x479832
push 3
mov esi, ebx
call fcn.00479410
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x479832
mov dword [ebx], 3
jmp 0x479832
push 0x74fdb4
push esi
call fcn.00463c60
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005635df
add esp, 0x154
ret