Function at 0x4d1580
Capabilities:
Act as tcp client
Check for time delay via gettickcount
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1532c
call fcn.00613c30
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x152ec], ecx
xor eax, eax
mov dword [ebp - 0x15180], eax
mov dword [ebp - 0x1517c], eax
mov dword [ebp - 0x15178], eax
mov dword [ebp - 0x15174], eax
mov dword [ebp - 0x152f0], 0
mov dword [ebp - 0x152c4], 0
mov dword [ebp - 0x152bc], 0xffffffff
mov dword [ebp - 0x152c8], 0
lea ecx, [ebp - 0x151d8]
call fcn.004219a0
mov dword [ebp - 0x152f4], 0
mov dword [ebp - 0x152b8], 0
lea ecx, [ebp - 0x151a8]
call fcn.004219a0
mov dword [ebp - 0x152a4], 0xffffffff
mov dword [ebp - 0x152d4], 0
mov dword [ebp - 0x152c0], 0
lea ecx, [ebp - 0x151c0]
call fcn.004219a0
lea ecx, [ebp - 0x151f0]
call fcn.004219a0
mov dword [ebp - 0x152dc], 0
mov dword [ebp - 0x152d0], 0
mov dword [ebp - 0x152e0], 0x194
mov dword [ebp - 0x152b0], 0
mov dword [ebp - 0x152a8], 0
mov dword [ebp - 0x152cc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x152d8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x152f8], eax
mov cx, word [0x698504]
mov word [ebp - 0x1454], cx
push 0x144e
push 0
lea edx, [ebp - 0x1452]
push edx
call fcn.0063a460
add esp, 0xc
mov ax, word [0x698508]
mov word [ebp - 0x28a4], ax
push 0x144e
push 0
lea ecx, [ebp - 0x28a2]
push ecx
call fcn.0063a460
add esp, 0xc
mov dx, word [0x69850c]
mov word [ebp - 0x13cf4], dx
push 0x144e
push 0
lea eax, [ebp - 0x13cf2]
push eax
call fcn.0063a460
add esp, 0xc
mov cx, word [0x698510]
mov word [ebp - 0x15144], cx
push 0x144e
push 0
lea edx, [ebp - 0x15142]
push edx
call fcn.0063a460
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [ebp - 0x152a8], eax
lea ecx, [ebp - 0x152a0]
call fcn.004d8980
lea ecx, [ebp - 0x15310]
call fcn.00421b20
push 0
lea eax, [ebp - 0x15310]
push eax
call fcn.004dd660
add esp, 8
lea ecx, [ebp - 0x15310]
call fcn.004da1e0
test eax, eax
je 0x4d178b
lea ecx, [ebp - 0x152a0]
push ecx
push 0
lea ecx, [ebp - 0x15310]
call fcn.004d8ec0
push eax
call fcn.004dd190
add esp, 8
lea edx, [ebp - 0x152a0]
mov dword [ebp - 0x152b0], edx
mov eax, dword [ebp - 0x152f4]
add eax, 1
mov dword [ebp - 0x152f4], eax
lea ecx, [ebp - 0x1532c]
call fcn.004ce940
mov ecx, dword [ebp + 0xc]
call fcn.0047d9f0
lea ecx, [ebp - 0x152c8]
push ecx
lea edx, [ebp - 0x13cf4]
push edx
lea eax, [ebp - 0x15144]
push eax
lea ecx, [ebp - 0x28a4]
push ecx
lea edx, [ebp - 0x1454]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x152ec]
call fcn.004d2560
test eax, eax
jne 0x4d17e8
jmp 0x4d1ee9
cmp dword [ebp - 0x152b0], 0
jne 0x4d18e3
mov ecx, 2
mov word [ebp - 0x15190], cx
movzx edx, word [ebp - 0x152c8]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1518e], ax
lea eax, [ebp - 0x1454]
push eax
lea ecx, [ebp - 0x1532c]
call fcn.004ceb90
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x152cc], eax
cmp dword [ebp - 0x152cc], 0
jne 0x4d1843
jmp 0x4d1ee9
mov ecx, dword [ebp - 0x152cc]
movsx edx, word [ecx + 0xa]
push edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x152cc]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + ecx]
push ecx
lea edx, [ebp - 0x1517c]
push edx
call fcn.00639960
add esp, 0xc
mov eax, dword [ebp - 0x1517c]
mov dword [ebp - 0x152f0], eax
mov ecx, dword [ebp - 0x152f0]
mov dword [ebp - 0x1518c], ecx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x152a4], eax
push 0x30
mov edx, dword [ebp - 0x152a8]
push edx
mov eax, dword [ebp - 0x152a4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
lea ecx, [ebp - 0x15190]
push ecx
mov edx, dword [ebp - 0x152a4]
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4d18de
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4d18de
jmp 0x4d1ee9
jmp 0x4d198d
mov eax, dword [ebp - 0x152b0]
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x152c8]
push ecx
lea edx, [ebp - 0x1454]
push edx
lea ecx, [ebp - 0x1532c]
call fcn.004ceb90
push eax
call fcn.004de850
add esp, 0x1c
mov dword [ebp - 0x152a4], eax
cmp dword [ebp - 0x152a4], 0xffffffff
jne 0x4d193b
push 0
mov eax, dword [ebp - 0x152b0]
push eax
call fcn.004dd110
add esp, 8
jmp 0x4d1ee9
mov ecx, dword [ebp - 0x152b0]
push ecx
call fcn.004dd0e0
add esp, 4
test eax, eax
jne 0x4d1977
push 1
mov edx, dword [ebp - 0x152b0]
push edx
call fcn.004dd110
add esp, 8
push 0x30
mov eax, dword [ebp - 0x152a8]
push eax
mov ecx, dword [ebp - 0x152a4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x4d198d
push 0x30
mov edx, dword [ebp - 0x152a8]
push edx
mov eax, dword [ebp - 0x152a4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ecx, 1
test ecx, ecx
je 0x4d1ee9
mov dword [ebp - 0x152ac], 0
push 0x2c
push 0
lea edx, [ebp - 0x15170]
push edx
call fcn.0063a460
add esp, 0xc
push 0
push 1
push 0
lea eax, [ebp - 0x152a8]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov dword [ebp - 0x152d4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x152d8], eax
cmp dword [ebp + 0x10], 0
jle 0x4d1a08
mov ecx, dword [ebp - 0x152d8]
cmp ecx, dword [ebp - 0x152f8]
jb 0x4d1a03
mov edx, dword [ebp - 0x152d8]
sub edx, dword [ebp - 0x152f8]
cmp edx, dword [ebp + 0x10]
jb 0x4d1a08
jmp 0x4d1ee9
cmp dword [ebp - 0x152d4], 0xffffffff
jne 0x4d1a1b
jmp 0x4d1ee9
cmp dword [ebp - 0x152d4], 0x102
jne 0x4d1a31
jmp 0x4d198d
push 0x2c
push 0
lea eax, [ebp - 0x15170]
push eax
call fcn.0063a460
add esp, 0xc
lea ecx, [ebp - 0x15170]
push ecx
mov edx, dword [ebp - 0x152a8]
push edx
mov eax, dword [ebp - 0x152a4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
je 0x4d1a68
jmp 0x4d1ee9
cmp dword [ebp - 0x15170], 0
je 0x4d1ed9
mov ecx, dword [ebp - 0x15170]
and ecx, 0x10
je 0x4d1b6e
mov edx, dword [ebp - 0x15170]
and edx, 0xffffffef
mov dword [ebp - 0x15170], edx
mov eax, 4
shl eax, 2
cmp dword [ebp + eax - 0x1516c], 0
jne 0x4d1b5a
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1532c]
call fcn.004ceb90
push eax
push 0
push 0
mov edx, dword [ebp - 0x152c8]
push edx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28a4]
push eax
lea ecx, [ebp - 0x1532c]
call fcn.004ceb90
push eax
lea ecx, [ebp - 0x1454]
push ecx
lea ecx, [ebp - 0x1532c]
call fcn.004ceb90
push eax
lea edx, [ebp - 0x15208]
push edx
mov ecx, dword [ebp - 0x152ec]
call fcn.004d4500
push eax
lea ecx, [ebp - 0x151a8]
call fcn.00473a40
lea ecx, [ebp - 0x15208]
call fcn.00421c30
push 0
lea ecx, [ebp - 0x151a8]
call fcn.00425220
push eax
lea ecx, [ebp - 0x151a8]
call fcn.00424f20
push eax
mov eax, dword [ebp - 0x152a4]
push eax
call dword [sym.imp.WS2_32.dll_send]
push 0x21
mov ecx, dword [ebp - 0x152a8]
push ecx
mov edx, dword [ebp - 0x152a4]
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x4d1b69
mov dword [ebp - 0x152ac], 1
jmp 0x4d1ed9
jmp 0x4d1ed4
mov eax, dword [ebp - 0x15170]
and eax, 1
je 0x4d1e46
mov ecx, dword [ebp - 0x15170]
and ecx, 0xfffffffe
mov dword [ebp - 0x15170], ecx
mov edx, 4
imul eax, edx, 0
cmp dword [ebp + eax - 0x1516c], 0
jne 0x4d1e32
push 0
push 0xffff
lea ecx, [ebp - 0x128a4]
push ecx
mov edx, dword [ebp - 0x152a4]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x152b8], eax
cmp dword [ebp - 0x152b8], 0
jle 0x4d1c28
mov eax, dword [ebp - 0x152b8]
mov dword [ebp - 0x152e8], eax
cmp dword [ebp - 0x152e8], 0x10000
jae 0x4d1be6
jmp 0x4d1beb
call fcn.00613b48
mov ecx, dword [ebp - 0x152e8]
mov byte [ebp + ecx - 0x128a4], 0
mov edx, dword [ebp - 0x152b8]
push edx
lea eax, [ebp - 0x128a4]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00424cd0
mov ecx, dword [ebp - 0x152b8]
push ecx
lea edx, [ebp - 0x128a4]
push edx
lea ecx, [ebp - 0x151c0]
call fcn.00424cd0
cmp dword [ebp - 0x152d0], 0
jne 0x4d1d76
push 0
push 0x698514
mov ecx, dword [ebp + 0xc]
call fcn.00451450
mov dword [ebp - 0x152bc], eax
cmp dword [ebp - 0x152bc], 0xffffffff
je 0x4d1d76
mov dword [ebp - 0x152d0], 1
push 0x69851c
mov ecx, dword [ebp + 0xc]
call fcn.00424f20
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x152e4], eax
cmp dword [ebp - 0x152e4], 0
je 0x4d1ca8
push 0x69852c
call fcn.00642390
add esp, 4
add eax, dword [ebp - 0x152e4]
push eax
call fcn.006438bd
add esp, 4
mov dword [ebp - 0x152c0], eax
jmp 0x4d1cb2
mov dword [ebp - 0x152c0], 0xffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x152bc]
add eax, 4
push eax
lea ecx, [ebp - 0x15238]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00451a10
push eax
lea ecx, [ebp - 0x151d8]
call fcn.00473a40
lea ecx, [ebp - 0x15238]
call fcn.00421c30
mov edx, dword [ebp - 0x152bc]
push edx
push 0
lea eax, [ebp - 0x15220]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00451a10
push eax
lea ecx, [ebp - 0x151f0]
call fcn.00473a40
lea ecx, [ebp - 0x15220]
call fcn.00421c30
mov ecx, dword [ebp - 0x152bc]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004da020
mov ecx, dword [ebp + 0xc]
call fcn.00424f20
add eax, 9
push eax
call fcn.006438bd
add esp, 4
mov dword [ebp - 0x152e0], eax
lea edx, [ebp - 0x151d8]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0047b020
cmp dword [ebp - 0x152c0], 0xffffffff
jne 0x4d1d76
push 0x69853c
mov ecx, dword [ebp + 0xc]
call fcn.00424f20
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4d1d76
mov dword [ebp - 0x152dc], 1
cmp dword [ebp - 0x152d0], 0
je 0x4d1e11
cmp dword [ebp - 0x152e0], 0xc8
je 0x4d1da3
mov dword [ebp - 0x152ac], 1
mov dword [ebp - 0x152c4], 0
cmp dword [ebp - 0x152c0], 0xffffffff
je 0x4d1dd2
mov ecx, dword [ebp + 0xc]
call fcn.00425220
cmp eax, dword [ebp - 0x152c0]
jne 0x4d1dd2
mov dword [ebp - 0x152ac], 1
mov dword [ebp - 0x152c4], 1
jmp 0x4d1e11
cmp dword [ebp - 0x152dc], 0
je 0x4d1e11
lea eax, [ebp - 0x151c0]
push eax
call fcn.004cf6d0
add esp, 4
test eax, eax
je 0x4d1e11
lea ecx, [ebp - 0x151c0]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0047b020
mov dword [ebp - 0x152c4], 1
mov dword [ebp - 0x152ac], 1
cmp dword [ebp - 0x152ac], 0
jne 0x4d1e30
push 0x21
mov edx, dword [ebp - 0x152a8]
push edx
mov eax, dword [ebp - 0x152a4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x4d1e41
mov dword [ebp - 0x152ac], 1
jmp 0x4d1ed9
jmp 0x4d1ed4
mov ecx, dword [ebp - 0x15170]
and ecx, 2
je 0x4d1e98
mov edx, dword [ebp - 0x15170]
and edx, 0xfffffffd
mov dword [ebp - 0x15170], edx
mov eax, 4
shl eax, 0
cmp dword [ebp + eax - 0x1516c], 0
jne 0x4d1e8a
push 0x21
mov ecx, dword [ebp - 0x152a8]
push ecx
mov edx, dword [ebp - 0x152a4]
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x4d1e96
mov dword [ebp - 0x152ac], 1
jmp 0x4d1ed9
jmp 0x4d1ed4
mov eax, dword [ebp - 0x15170]
and eax, 0x20
je 0x4d1ec0
mov ecx, dword [ebp - 0x15170]
and ecx, 0xffffffdf
mov dword [ebp - 0x15170], ecx
mov dword [ebp - 0x152ac], 1
jmp 0x4d1ed9
mov dword [ebp - 0x15170], 0
mov dword [ebp - 0x152ac], 1
jmp 0x4d1a68
cmp dword [ebp - 0x152ac], 0
je 0x4d1ee4
jmp 0x4d1ee9
jmp 0x4d198d
cmp dword [ebp - 0x152a4], 0
je 0x4d1f2d
cmp dword [ebp - 0x152a4], 0xffffffff
je 0x4d1f2d
push 0
mov edx, dword [ebp - 0x152a8]
push edx
mov eax, dword [ebp - 0x152a4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 2
mov ecx, dword [ebp - 0x152a4]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [ebp - 0x152a4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp - 0x152c4], 0
jne 0x4d1f3e
mov ecx, dword [ebp + 0xc]
call fcn.0047d9f0
push 0x698558
lea ecx, [ebp - 0x151f0]
call fcn.00424f20
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4d2000
mov dword [ebp - 0x152b4], 0
mov dword [ebp - 0x152fc], 0
mov dword [ebp - 0x15300], 0
lea eax, [ebp - 0x15300]
push eax
lea ecx, [ebp - 0x152b4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00425220
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00424f20
push eax
call fcn.004d57f0
add esp, 0x10
mov dword [ebp - 0x152fc], eax
cmp dword [ebp - 0x152fc], 0
jne 0x4d1fde
cmp dword [ebp - 0x152b4], 0
je 0x4d1fde
push 0x69828b
mov ecx, dword [ebp + 0xc]
call fcn.00421e60
mov edx, dword [ebp - 0x15300]
push edx
mov eax, dword [ebp - 0x152b4]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00424dc0
cmp dword [ebp - 0x152b4], 0
je 0x4d1ff6
mov ecx, dword [ebp - 0x152b4]
push ecx
call fcn.0063e41a
add esp, 4
mov dword [ebp - 0x152b4], 0
mov edx, dword [ebp - 0x152a8]
push edx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [ebp - 0x152a8], 0
mov eax, dword [ebp - 0x152c4]
mov dword [ebp - 0x15304], eax
lea ecx, [ebp - 0x1532c]
call fcn.004ce990
lea ecx, [ebp - 0x15310]
call fcn.004d8ab0
lea ecx, [ebp - 0x152a0]
call fcn.004d8c10
lea ecx, [ebp - 0x151f0]
call fcn.00421c30
lea ecx, [ebp - 0x151c0]
call fcn.00421c30
lea ecx, [ebp - 0x151a8]
call fcn.00421c30
lea ecx, [ebp - 0x151d8]
call fcn.00421c30
mov eax, dword [ebp - 0x15304]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret 0xc