Function at 0x58e52c
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get hostname
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcf8
mov eax, 0x69d2ab
xor edx, edx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x58], 0x6db918
mov dword [ebp - 0x54], esp
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x50], 0
mov dword [ebp - 0x44], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x60], ecx
lea eax, [ebp - 0x60]
mov dword fs:[0], eax
mov byte [0x6fcc8c], 0
mov byte [ebp - 0x61], 0
test esi, esi
je 0x58e5ca
mov byte [ebp - 0x61], 1
mov edx, dword [esi + 8]
mov dword [ebp - 0x68], edx
mov edi, dword [esi + 4]
push edi
mov eax, dword [esi + 8]
push eax
mov edx, dword [ebp - 0x68]
push edx
call fcn.004057f0
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov ecx, dword [esi + 8]
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp - 0x68]
sub eax, edi
test eax, eax
jns 0x58e5b0
add eax, 0xf
sar eax, 4
shl eax, 4
sub dword [esi + 8], eax
mov edx, dword [ebp - 0x70]
push edx
mov ecx, dword [ebp - 0x6c]
push ecx
push esi
call fcn.0040445c
add esp, 0xc
mov al, byte [ebp - 0x61]
test al, al
jne 0x58e929
mov edx, dword [ebx + 0x10]
cmp edx, 0xffffffff
je 0x58e929
mov dword [ebp - 0x74], 0x10
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], ebx
mov eax, dword [ebp - 0x7c]
mov dl, byte [eax + 0xc]
test dl, dl
jne 0x58e611
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x1fc]
push ecx
push eax
mov edx, dword [ebp - 0x78]
push edx
call sub.WSOCK32.DLL_getsockname
jmp 0x58e629
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x1fc]
push ecx
push eax
mov edx, dword [ebp - 0x78]
push edx
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.00591cd0
inc eax
je 0x58e929
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], ebx
mov edx, dword [ebp - 0x84]
mov cl, byte [edx + 0xc]
test cl, cl
jne 0x58e657
mov eax, dword [ebp - 0x80]
push eax
call sub.WSOCK32.DLL_inet_ntoa
jmp 0x58e667
mov edx, dword [ebp - 0x80]
push edx
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.005921dc
mov edi, eax
xor eax, eax
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, 0x6fcc8c
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
mov eax, 0x6fcc8c
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 0x6da7c7
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x58e6b7
test cl, cl
je 0x58e929
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x58e6b7
add eax, 2
add edx, 2
test cl, cl
jne 0x58e697
je 0x58e929
mov al, byte [0x6fcc8c]
test al, al
je 0x58e929
mov dl, byte [ebp - 0x61]
test dl, dl
je 0x58e915
mov word [ebp - 0x50], 8
lea ecx, [ebp - 0x8c]
lea eax, [ebp - 0x10]
push ecx
push 0x6fcc8c
push eax
call fcn.0069a6ec
add esp, 0xc
inc dword [ebp - 0x44]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
cmp edx, ecx
je 0x58e84c
mov eax, dword [esi + 8]
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x14], edx
test edx, edx
je 0x58e846
mov word [ebp - 0x50], 0x14
xor eax, eax
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x94]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 8]
mov ecx, dword [edx - 0xc]
inc ecx
test ecx, ecx
jle 0x58e7a3
mov eax, dword [ebp - 8]
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x98]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x204], ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 8]
add edx, 0xfffffff4
mov dword [ebp - 0xa0], edx
mov ecx, 0x6ff36c
mov eax, dword [ebp - 0xa0]
cmp ecx, eax
je 0x58e840
mov edx, dword [ebp - 0xa0]
push edx
call sub.KERNEL32.DLL_InterlockedIncrement
jmp 0x58e840
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 4]
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
push edx
mov ecx, dword [ebp - 0xa4]
push ecx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0069a874
add esp, 0xc
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
add edx, 0xc
mov dword [ebp - 0xa8], edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xa8]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xb0], edx
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xb4], edx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xb8], ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 8]
mov dword [ebp - 0xbc], edx
mov ecx, dword [ebp - 0xb4]
push ecx
mov eax, dword [ebp - 0xb8]
push eax
mov edx, dword [ebp - 0xbc]
push edx
call fcn.0069cc60
add esp, 0xc
mov word [ebp - 0x50], 8
add dword [esi + 8], 0x10
jmp 0x58e85d
lea ecx, [ebp - 0x10]
push ecx
mov eax, dword [esi + 8]
push eax
push esi
call fcn.004069b4
add esp, 0xc
dec dword [ebp - 0x44]
mov edx, dword [ebp - 8]
test edx, edx
je 0x58e915
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 0xc]
inc eax
test eax, eax
je 0x58e8c7
mov edx, dword [ebp - 8]
add edx, 0xfffffff4
mov dword [ebp - 0xc0], edx
mov ecx, 0x6ff36c
mov eax, dword [ebp - 0xc0]
cmp ecx, eax
je 0x58e8be
mov edx, 0x6ff36c
mov ecx, dword [ebp - 0xc0]
cmp edx, ecx
je 0x58e8b7
mov eax, dword [ebp - 0xc0]
push eax
call sub.KERNEL32.DLL_InterlockedDecrement
mov edx, dword [ebp - 0xc0]
mov ecx, dword [edx]
inc ecx
jmp 0x58e8c3
mov ecx, 1
jmp 0x58e8c3
mov ecx, 1
test ecx, ecx
jne 0x58e915
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 8]
add edx, 0xfffffff4
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
push eax
call fcn.0067ac7c
pop ecx
xor edx, edx
mov dword [ebp - 0xcc], edx
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xd0]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x224], ecx
mov eax, 0x6fcc8c
mov edx, dword [ebp - 0x60]
mov dword fs:[0], edx
jmp 0x58f3a5
mov dword [ebp - 0xd4], ebx
mov ecx, dword [ebp - 0xd4]
mov al, byte [ecx + 0xc]
test al, al
jne 0x58e94b
push 0
push 2
push 2
call sub.WSOCK32.DLL_socket
mov edi, eax
jmp 0x58e95f
push 0
push 2
push 2
mov edx, dword [ebp - 0xd4]
push edx
call fcn.00592a38
mov edi, eax
cmp edi, 0xffffffff
je 0x58e9ad
xor ecx, ecx
lea edx, [ebp - 0xe0]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xe0], edi
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0x244]
mov dword [ebp - 0xdc], eax
push edx
push 0x6db34c
push ecx
call fcn.0058c62c
add esp, 0xc
mov eax, dword [ebp - 0x23c]
add eax, 0x10
add eax, 4
mov edx, dword [ebp - 0xd4]
mov dword [eax], edx
mov cl, byte [ebp - 0x61]
test cl, cl
jne 0x58efa5
cmp edi, 0xffffffff
je 0x58efa5
mov dword [ebp - 0xe4], 1
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xec], ebx
mov eax, dword [ebp - 0xec]
mov dl, byte [eax + 0xc]
test dl, dl
jne 0x58e9fe
lea ecx, [ebp - 0xe4]
push ecx
push 0x8004667e
mov eax, dword [ebp - 0xe8]
push eax
call sub.WSOCK32.DLL_ioctlsocket
jmp 0x58ea1d
lea edx, [ebp - 0xe4]
push edx
push 0x8004667e
mov ecx, dword [ebp - 0xe8]
push ecx
mov eax, dword [ebp - 0xec]
push eax
call fcn.00591b0c
mov word [ebp - 0x1fc], 2
mov dword [ebp - 0xf0], ebx
mov edx, dword [ebp - 0xf0]
mov cl, byte [edx + 0xc]
test cl, cl
jne 0x58ea42
push 0
call sub.WSOCK32.DLL_htons
jmp 0x58ea50
push 0
mov eax, dword [ebp - 0xf0]
push eax
call fcn.005920fc
mov word [ebp - 0x1fa], ax
mov dword [ebp - 0xf4], ebx
mov edx, dword [ebp - 0xf4]
mov cl, byte [edx + 0xc]
test cl, cl
jne 0x58ea73
push 0
call sub.WSOCK32.DLL_htonl
jmp 0x58ea81
push 0
mov eax, dword [ebp - 0xf4]
push eax
call fcn.00592090
mov dword [ebp - 0x1f8], eax
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xfc], ebx
mov edx, dword [ebp - 0xfc]
mov cl, byte [edx + 0xc]
test cl, cl
jne 0x58eab7
push 0x10
lea eax, [ebp - 0x1fc]
push eax
mov edx, dword [ebp - 0xf8]
push edx
call sub.WSOCK32.DLL_bind
jmp 0x58ead3
push 0x10
lea ecx, [ebp - 0x1fc]
push ecx
mov eax, dword [ebp - 0xf8]
push eax
mov edx, dword [ebp - 0xfc]
push edx
call fcn.00591930
inc eax
je 0x58efa5
mov word [ebp - 0x1fc], 2
mov dword [ebp - 0x100], ebx
mov ecx, dword [ebp - 0x100]
mov al, byte [ecx + 0xc]
test al, al
jne 0x58eb02
push 0x5ba0
call sub.WSOCK32.DLL_htons
jmp 0x58eb13
push 0x5ba0
mov edx, dword [ebp - 0x100]
push edx
call fcn.005920fc
mov word [ebp - 0x1fa], ax
mov dword [ebp - 0x104], ebx
mov ecx, dword [ebp - 0x104]
mov al, byte [ecx + 0xc]
test al, al
jne 0x58eb39
push 0x6da7cf
call sub.WSOCK32.DLL_inet_addr
jmp 0x58eb4a
push 0x6da7cf
mov edx, dword [ebp - 0x104]
push edx
call fcn.00592170
mov dword [ebp - 0x1f8], eax
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x10c], ebx
mov ecx, dword [ebp - 0x10c]
mov al, byte [ecx + 0xc]
test al, al
jne 0x58eb80
push 0x10
lea edx, [ebp - 0x1fc]
push edx
mov ecx, dword [ebp - 0x108]
push ecx
call sub.WSOCK32.DLL_connect
jmp 0x58eb9c
push 0x10
lea eax, [ebp - 0x1fc]
push eax
mov edx, dword [ebp - 0x108]
push edx
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.00591a68
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov eax, dword [ebp - 0x120]
mov dl, byte [eax + 0xc]
test dl, dl
jne 0x58ebce
push 0
lea ecx, [ebp - 0x118]
push 9
push ecx
mov eax, dword [ebp - 0x11c]
push eax
call sub.WSOCK32.DLL_recv
jmp 0x58ebec
push 0
lea edx, [ebp - 0x118]
push 9
push edx
mov ecx, dword [ebp - 0x11c]
push ecx
mov eax, dword [ebp - 0x120]
push eax
call fcn.00592354
mov dword [ebp - 0x124], 0x10
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x12c], ebx
mov edx, dword [ebp - 0x12c]
mov cl, byte [edx + 0xc]
test cl, cl
jne 0x58ec2b
lea eax, [ebp - 0x124]
lea edx, [ebp - 0x1fc]
push eax
push edx
mov ecx, dword [ebp - 0x128]
push ecx
call sub.WSOCK32.DLL_getsockname
jmp 0x58ec4c
lea eax, [ebp - 0x124]
lea edx, [ebp - 0x1fc]
push eax
push edx
mov ecx, dword [ebp - 0x128]
push ecx
mov eax, dword [ebp - 0x12c]
push eax
call fcn.00591cd0
inc eax
je 0x58efa5
mov edx, dword [ebp - 0x1f8]
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], ebx
mov ecx, dword [ebp - 0x134]
mov al, byte [ecx + 0xc]
test al, al
jne 0x58ec80
mov edx, dword [ebp - 0x130]
push edx
call sub.WSOCK32.DLL_inet_ntoa
jmp 0x58ec93
mov ecx, dword [ebp - 0x130]
push ecx
mov eax, dword [ebp - 0x134]
push eax
call fcn.005921dc
push esi
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
mov esi, 0x6fcc8c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 0x6da7d9
and ecx, 3
mov eax, 0x6fcc8c
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x58ece5
test cl, cl
je 0x58efa5
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x58ece5
add eax, 2
add edx, 2
test cl, cl
jne 0x58ecc5
je 0x58efa5
mov al, byte [0x6fcc8c]
test al, al
je 0x58efa5
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x13c], ebx
lea edx, [ebp - 0x138]
push edx
push 0x6db34c
call fcn.00589c90
add esp, 8
mov ecx, dword [ebp - 0x13c]
mov al, byte [ecx + 0xc]
test al, al
jne 0x58ed33
mov edx, dword [ebp - 0x138]
push edx
call sub.WSOCK32.DLL_closesocket
jmp 0x58ed46
mov ecx, dword [ebp - 0x138]
push ecx
mov eax, dword [ebp - 0x13c]
push eax
call fcn.005919d4
mov dl, byte [ebp - 0x61]
test dl, dl
je 0x58ef91
mov word [ebp - 0x50], 0x38
lea ecx, [ebp - 0x144]
lea eax, [ebp - 0x24]
push ecx
push 0x6fcc8c
push eax
call fcn.0069a6ec
add esp, 0xc
inc dword [ebp - 0x44]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
cmp edx, ecx
je 0x58eec8
mov eax, dword [esi + 8]
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x28], edx
test edx, edx
je 0x58eec2
mov word [ebp - 0x50], 0x44
xor eax, eax
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx - 0xc]
inc ecx
test ecx, ecx
jle 0x58ee1f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x150]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x24c], ecx
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 8]
add edx, 0xfffffff4
mov dword [ebp - 0x158], edx
mov ecx, 0x6ff36c
mov eax, dword [ebp - 0x158]
cmp ecx, eax
je 0x58eebc
mov edx, dword [ebp - 0x158]
push edx
call sub.KERNEL32.DLL_InterlockedIncrement
jmp 0x58eebc
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx - 4]
mov dword [ebp - 0x15c], eax
mov edx, dword [ebp - 0x15c]
push edx
mov ecx, dword [ebp - 0x15c]
push ecx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0069a874
add esp, 0xc
mov dword [ebp - 0x164], eax
mov edx, dword [ebp - 0x164]
add edx, 0xc
mov dword [ebp - 0x160], edx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x160]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x168], edx
mov ecx, dword [ebp - 0x168]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x16c], edx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x170], ecx
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 8]
mov dword [ebp - 0x174], edx
mov ecx, dword [ebp - 0x16c]
push ecx
mov eax, dword [ebp - 0x170]
push eax
mov edx, dword [ebp - 0x174]
push edx
call fcn.0069cc60
add esp, 0xc
mov word [ebp - 0x50], 0x38
add dword [esi + 8], 0x10
jmp 0x58eed9
lea ecx, [ebp - 0x24]
push ecx
mov eax, dword [esi + 8]
push eax
push esi
call fcn.004069b4
add esp, 0xc
dec dword [ebp - 0x44]
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x58ef91
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx - 0xc]
inc eax
test eax, eax
je 0x58ef43
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff4
mov dword [ebp - 0x178], edx
mov ecx, 0x6ff36c
mov eax, dword [ebp - 0x178]
cmp ecx, eax
je 0x58ef3a
mov edx, 0x6ff36c
mov ecx, dword [ebp - 0x178]
cmp edx, ecx
je 0x58ef33
mov eax, dword [ebp - 0x178]
push eax
call sub.KERNEL32.DLL_InterlockedDecrement
mov edx, dword [ebp - 0x178]
mov ecx, dword [edx]
inc ecx
jmp 0x58ef3f
mov ecx, 1
jmp 0x58ef3f
mov ecx, 1
test ecx, ecx
jne 0x58ef91
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
mov dword [ebp - 0x17c], eax
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff4
mov dword [ebp - 0x180], edx
mov eax, dword [ebp - 0x180]
push eax
call fcn.0067ac7c
pop ecx
xor edx, edx
mov dword [ebp - 0x184], edx
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x188], eax
mov edx, dword [ebp - 0x188]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x26c], ecx
mov eax, 0x6fcc8c
mov edx, dword [ebp - 0x60]
mov dword fs:[0], edx
jmp 0x58f3a5
cmp edi, 0xffffffff
je 0x58eff8
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x190], ebx
lea ecx, [ebp - 0x18c]
push ecx
push 0x6db34c
call fcn.00589c90
add esp, 8
mov eax, dword [ebp - 0x190]
mov dl, byte [eax + 0xc]
test dl, dl
jne 0x58efe5
mov ecx, dword [ebp - 0x18c]
push ecx
call sub.WSOCK32.DLL_closesocket
jmp 0x58eff8
mov eax, dword [ebp - 0x18c]
push eax
mov edx, dword [ebp - 0x190]
push edx
call fcn.005919d4
mov edi, ebx
mov cl, byte [edi + 0xc]
test cl, cl
jne 0x58f011
push 0x63
lea eax, [ebp - 0x2d8]
push eax
call sub.WSOCK32.DLL_gethostname
jmp 0x58f020
push 0x63
lea edx, [ebp - 0x2d8]
push edx
push edi
call fcn.00592bf4
inc eax
jne 0x58f037
mov eax, 0x6da7e1
mov edx, dword [ebp - 0x60]
mov dword fs:[0], edx
jmp 0x58f3a5
mov edi, ebx
mov cl, byte [edi + 0xc]
test cl, cl
jne 0x58f04e
lea eax, [ebp - 0x2d8]
push eax
call sub.WSOCK32.DLL_gethostbyname
jmp 0x58f05b
lea edx, [ebp - 0x2d8]
push edx
push edi
call fcn.00592b60
mov dword [ebp - 0x194], eax
test eax, eax
jne 0x58f079
mov eax, 0x6da7e3
mov edx, dword [ebp - 0x60]
mov dword fs:[0], edx
jmp 0x58f3a5
push 0x10
mov edi, ebx
mov ecx, dword [ebp - 0x194]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0x198], ecx
mov al, byte [edi + 0xc]
test al, al
jne 0x58f0a5
mov edx, dword [ebp - 0x198]
push edx
call sub.WSOCK32.DLL_inet_ntoa
jmp 0x58f0b2
mov ecx, dword [ebp - 0x198]
push ecx
push edi
call fcn.005921dc
push eax
push 0x6fcc8c
call fcn.0069d020
add esp, 0xc
mov byte [0x6fcc9c], 0
push 0x6fcc8c
call fcn.0069ce0c
pop ecx
cmp eax, 0xf
jbe 0x58f0eb
mov eax, 0x6da7e5
mov edx, dword [ebp - 0x60]
mov dword fs:[0], edx
jmp 0x58f3a5
mov cl, byte [ebp - 0x61]
test cl, cl
je 0x58f396
xor edi, edi
jmp 0x58f382
mov word [ebp - 0x50], 0x68
lea eax, [ebp - 0x1a8]
push eax
mov edx, dword [ebp - 0x194]
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + edi*4]
mov edx, dword [eax]
mov dword [ebp - 0x19c], edx
mov dword [ebp - 0x1a0], ebx
mov ecx, dword [ebp - 0x1a0]
mov al, byte [ecx + 0xc]
test al, al
jne 0x58f13f
mov edx, dword [ebp - 0x19c]
push edx
call sub.WSOCK32.DLL_inet_ntoa
jmp 0x58f152
mov ecx, dword [ebp - 0x19c]
push ecx
mov eax, dword [ebp - 0x1a0]
push eax
call fcn.005921dc
push eax
lea edx, [ebp - 0x38]
push edx
call fcn.0069a6ec
add esp, 0xc
inc dword [ebp - 0x44]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x18]
cmp ecx, eax
je 0x58f2b8
mov edx, dword [esi + 8]
mov dword [ebp - 0x1ac], edx
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x58f2b2
mov word [ebp - 0x50], 0x74
xor eax, eax
mov dword [ebp - 0x1b0], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x1b0]
mov dword [edx + 8], eax
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx - 0xc]
inc ecx
test ecx, ecx
jle 0x58f20f
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1b4], eax
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1b4]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1b8], eax
mov edx, dword [ebp - 0x1b8]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x2e0], ecx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 8]
add edx, 0xfffffff4
mov dword [ebp - 0x1bc], edx
mov ecx, 0x6ff36c
mov eax, dword [ebp - 0x1bc]
cmp ecx, eax
je 0x58f2ac
mov edx, dword [ebp - 0x1bc]
push edx
call sub.KERNEL32.DLL_InterlockedIncrement
jmp 0x58f2ac
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx - 4]
mov dword [ebp - 0x1c0], eax
mov edx, dword [ebp - 0x1c0]
push edx
mov ecx, dword [ebp - 0x1c0]
push ecx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0069a874
add esp, 0xc
mov dword [ebp - 0x1c8], eax
mov edx, dword [ebp - 0x1c8]
add edx, 0xc
mov dword [ebp - 0x1c4], edx
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x1c4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1cc], edx
mov ecx, dword [ebp - 0x1cc]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x2f0], eax
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1d0], edx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1d4], ecx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 8]
mov dword [ebp - 0x1d8], edx
mov ecx, dword [ebp - 0x1d0]
push ecx
mov eax, dword [ebp - 0x1d4]
push eax
mov edx, dword [ebp - 0x1d8]
push edx
call fcn.0069cc60
add esp, 0xc
mov word [ebp - 0x50], 0x68
add dword [esi + 8], 0x10
jmp 0x58f2c9
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [esi + 8]
push eax
push esi
call fcn.004069b4
add esp, 0xc
dec dword [ebp - 0x44]
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x58f381
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx - 0xc]
inc eax
test eax, eax
je 0x58f333
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff4
mov dword [ebp - 0x1dc], edx
mov ecx, 0x6ff36c
mov eax, dword [ebp - 0x1dc]
cmp ecx, eax
je 0x58f32a
mov edx, 0x6ff36c
mov ecx, dword [ebp - 0x1dc]
cmp edx, ecx
je 0x58f323
mov eax, dword [ebp - 0x1dc]
push eax
call sub.KERNEL32.DLL_InterlockedDecrement
mov edx, dword [ebp - 0x1dc]
mov ecx, dword [edx]
inc ecx
jmp 0x58f32f
mov ecx, 1
jmp 0x58f32f
mov ecx, 1
test ecx, ecx
jne 0x58f381
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff4
mov dword [ebp - 0x1e0], eax
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff4
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp - 0x1e4]
push eax
call fcn.0067ac7c
pop ecx
xor edx, edx
mov dword [ebp - 0x1e8], edx
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x1e8]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1ec], eax
mov edx, dword [ebp - 0x1ec]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x300], ecx
inc edi
mov eax, dword [ebp - 0x194]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + edi*4]
test ecx, ecx
jne 0x58f0fd
mov eax, 0x6fcc8c
mov edx, dword [ebp - 0x60]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret