Function at 0x483e40
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x478
push ebx
push esi
push edi
push ebp
push 0x3e8
push 2
push 6
call fcn.004826f0
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
jne 0x483e74
mov eax, 0x3f
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x478
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00483d50
add esp, 4
push 1
call fcn.00483d40
push eax
call fcn.00485400
add esp, 8
cmp eax, 0xffffffff
jne 0x483ea6
mov eax, 0x41
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x478
ret
cmp dword [0x476678], 0
je 0x483f89
push 0x4776e8
call fcn.0047ec80
add esp, 4
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
push 0xe
call ebx
add esp, 4
mov edi, eax
test edi, edi
jne 0x483efd
push 0
call fcn.00483d40
push eax
call fcn.00485400
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call sub.WSOCK32.dll_closesocket
mov eax, 0x40
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x478
ret
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov word [edi + 0xc], si
mov word [edi], 6
call fcn.00483d60
push eax
call fcn.00482820
mov word [edi + 0xc], ax
add esp, 4
lea eax, [edi + 6]
mov dword [edi + 2], esi
push edi
push 0x4776e8
mov dword [eax], 0xffffffff
mov word [eax + 4], 0xffff
call fcn.0047ec90
add esp, 8
mov eax, dword [0x4776e8]
push eax
call fcn.0047ec50
add esp, 4
test eax, eax
je 0x483f7d
push esi
call fcn.00483d40
push eax
call fcn.00485400
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call sub.WSOCK32.dll_closesocket
mov eax, 0x41
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x478
ret
mov dword [0x476678], 0
jmp 0x483f8f
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
test eax, eax
jge 0x483fae
mov eax, 0x4a
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x478
ret
xor ebp, ebp
push ebp
call dword [sym.imp.MSVCRT.dll_time]
cdq
add esp, 4
xor eax, edx
sub eax, edx
mov dword [esp + 0x4c], ebp
and eax, 0x1fff
lea edi, [esp + 0x54]
xor eax, edx
mov ecx, 0x64
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x44], 0x3f
sub eax, edx
mov dword [esp + 0x48], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x490]
mov ecx, 0xffffffff
mov edi, esi
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
lea edi, [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [0x4776e8]
push esi
call fcn.0047ec50
add esp, 4
test eax, eax
jne 0x4840dd
push esi
call fcn.0047ec60
add esp, 4
push 0x10
push eax
call fcn.00483d40
push eax
call sub.WSOCK32.dll_connect
lea eax, [esp + 0x44]
push 0
push 0x1a0
push eax
call fcn.00483d40
push eax
call sub.WSOCK32.dll_send
cmp eax, 0x1a0
jne 0x484062
inc ebp
jmp 0x4840c1
mov dword [esp + 0x14], 0xe
push 0x10
call ebx
add esp, 4
mov edi, eax
test edi, edi
je 0x48410b
mov word [edi], 6
call fcn.00483d60
push eax
call fcn.00482820
mov word [edi + 0xc], ax
add esp, 4
mov dword [esp + 0x14], 0x10
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00483d40
push eax
call sub.WSOCK32.dll_getsockname
push edi
test eax, eax
jne 0x484135
push 0x477890
call fcn.0047ec90
add esp, 8
push esi
call fcn.0047ec70
add esp, 4
mov esi, eax
push esi
call fcn.0047ec50
add esp, 4
test eax, eax
je 0x48402a
push 0
test ebp, ebp
jne 0x484158
call fcn.00483d40
push eax
call fcn.00485400
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call sub.WSOCK32.dll_closesocket
mov eax, 0x3e
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x478
ret
push 0
call fcn.00483d40
push eax
call fcn.00485400
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call sub.WSOCK32.dll_closesocket
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x478
ret
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call sub.WSOCK32.dll_closesocket
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x478
ret
xor edi, edi
call dword [sym.imp.MSVCRT.dll_time]
add eax, dword [esp + 0x498]
mov esi, dword [esp + 0x4a8]
mov ebx, dword [esp + 0x49c]
mov dword [esp + 0x18], eax
add esp, 4
mov ebp, dword [esp + 0x14]
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
sub ebp, eax
mov dword [esp + 0x1c], ebp
jns 0x4841a3
mov dword [esp + 0x1c], 0
mov dword [esp + 0x1e4], 0
call fcn.00483d40
lea ecx, [esp + 0x1e4]
mov dword [esp + 0x1e8], eax
lea eax, [esp + 0x1c]
inc dword [esp + 0x1e4]
push eax
push 0
push 0
push ecx
call fcn.00483d40
inc eax
push eax
call fcn.00482720
add esp, 0x14
cmp eax, 0xffffffff
je 0x484287
test eax, eax
je 0x4842ce
lea eax, [esp + 0x2e8]
push 0
mov dword [esp + 0x1c], 0xe
push 0x1a0
push eax
call fcn.00483d40
push eax
call sub.WSOCK32.dll_recv
cmp eax, 0x1a0
jne 0x4842d3
lea eax, [esp + 0x18]
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], 0x10
push eax
push ecx
call fcn.00483d40
push eax
call sub.WSOCK32.dll_getpeername
lea ecx, [esp + 0x24]
push ecx
call fcn.0047cc90
mov ecx, dword [esp + 0x4a4]
mov edx, dword [esp + 0x4a0]
add esp, 4
push esi
push ecx
push edx
push ebx
push eax
lea eax, [esp + 0x30c]
push eax
call fcn.00484320
add esp, 0x18
cmp ebx, 4
jne 0x484278
cmp word [esi + 0x20], 0
ja 0x4842ce
cmp eax, 0x40
je 0x484302
test eax, eax
jne 0x4842d3
jmp 0x4842ce
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x4842d3
push 0
call fcn.00483d40
push eax
call fcn.00485400
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [esp + 0x49c]
mov eax, 0
cmp dword [ecx], 0
jg 0x4842f7
pop ebp
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x478
ret
mov edi, 1
test edi, edi
je 0x48417c
push 0
call fcn.00483d40
push eax
call fcn.00485400
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x478
ret
mov eax, dword [esp + 0x10]
push eax
call sub.WSOCK32.dll_closesocket
mov eax, 0x40
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x478
ret