Function at 0x472540
Capabilities:
Create tcp socket
Create udp socket
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5689a4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x11d8
call fcn.00528110
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x11d4], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x11d4]
cmp dword [eax + 0x210], 0
je 0x472bdd
mov dword [ebp - 0x148], 1
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x140], 0x10
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x14], 0
jmp 0x4725eb
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x5f9708]
jge 0x4726b9
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x42c
cmp dword [eax + 0x5ec670], 0xffffffff
je 0x4726b4
mov dword [ebp - 0x14c], 0
jmp 0x47262b
mov ecx, dword [ebp - 0x14c]
add ecx, 1
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x14c]
cmp edx, dword [ebp - 0x130]
jae 0x47265b
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x42c
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ebp + ecx*4 - 0x12c]
cmp edx, dword [eax + 0x5ec670]
jne 0x472659
jmp 0x47265b
jmp 0x47261c
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x130]
jne 0x47269d
cmp dword [ebp - 0x130], 0x40
jae 0x47269d
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x42c
mov edx, dword [ebp - 0x14c]
mov eax, dword [ecx + 0x5ec670]
mov dword [ebp + edx*4 - 0x12c], eax
mov ecx, dword [ebp - 0x130]
add ecx, 1
mov dword [ebp - 0x130], ecx
xor edx, edx
jne 0x472610
mov eax, dword [ebp - 0x138]
add eax, 1
mov dword [ebp - 0x138], eax
jmp 0x4725e2
cmp dword [ebp - 0x138], 0
jne 0x4726d2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47258a
lea ecx, [ebp - 0x148]
push ecx
push 0
push 0
lea edx, [ebp - 0x130]
push edx
push 0x40
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x472700
jmp 0x47258a
cmp dword [ebp - 0x134], 0
jge 0x472724
mov dword [ebp - 0x11c8], 0
push 0x5b15cc
lea eax, [ebp - 0x11c8]
push eax
call fcn.005286d1
mov dword [ebp - 0x14], 0
jmp 0x472736
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x5f9708]
jge 0x472bd8
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x42c
mov edx, dword [ecx + 0x5ec670]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x472bd3
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x42c
cmp dword [eax + 0x5ec674], 0
je 0x472791
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x42c
cmp dword [ecx + 0x5ec674], 2
jne 0x472869
push 0
push 0
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x42c
mov edx, dword [ecx + 0x5ec670]
push edx
call dword [sym.imp.WS2_32.dll_WSAAccept]
mov dword [ebp - 0x117c], eax
lea ecx, [ebp - 0x119c]
call fcn.00457800
mov dword [ebp - 0x11d8], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x11d4]
mov dword [ebp - 0x1184], eax
push 0x10
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1194]
push edx
call fcn.005289e0
add esp, 0xc
mov eax, dword [ebp - 0x117c]
mov dword [ebp - 0x1198], eax
lea ecx, [ebp - 0x119c]
push ecx
mov ecx, 0x5fab20
call fcn.004ddb70
mov dword [ebp - 0x11dc], eax
cmp dword [ebp - 0x11dc], 0xffffffff
jne 0x472855
push 2
mov edx, dword [ebp - 0x117c]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x117c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x11cc], 0
push 0x5b15cc
lea ecx, [ebp - 0x11cc]
push ecx
call fcn.005286d1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x119c]
call fcn.0043ef10
jmp 0x47272d
mov byte [ebp - 0x1168], 0
push 0x1000
push 0
lea edx, [ebp - 0x1167]
push edx
call fcn.005281f0
add esp, 0xc
lea eax, [ebp - 0x1168]
mov dword [ebp - 0x116c], eax
mov dword [ebp - 0x1170], 0x1000
mov dword [ebp - 0x1178], 0
mov dword [ebp - 0x1174], 0
push 0
push 0
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x1174]
push eax
lea ecx, [ebp - 0x1178]
push ecx
push 1
lea edx, [ebp - 0x1170]
push edx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x42c
mov ecx, dword [eax + 0x5ec670]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
je 0x472909
mov dword [ebp - 0x1170], 0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47272d
mov edx, dword [ebp - 0x1178]
mov dword [ebp - 0x1170], edx
lea ecx, [ebp - 0x160]
call fcn.00415d60
mov byte [ebp - 4], 2
movzx eax, word [ebp - 0x26]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
push ecx
movzx edx, byte [ebp - 0x21]
push edx
movzx eax, byte [ebp - 0x22]
push eax
movzx ecx, byte [ebp - 0x23]
push ecx
movzx edx, byte [ebp - 0x24]
push edx
push str._d._d._d._d:_d
lea eax, [ebp - 0x160]
push eax
call fcn.004171c0
add esp, 0x1c
mov dword [ebp - 0x15c], 0
xor ecx, ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], 0
mov ecx, dword [ebp - 0x11d4]
add ecx, 0x234
call fcn.0041dca0
lea edx, [ebp - 0x15c]
push edx
lea ecx, [ebp - 0x160]
call fcn.00415f60
push eax
mov ecx, dword [ebp - 0x11d4]
add ecx, 0x218
call fcn.004732d0
mov dword [ebp - 0x11e0], eax
cmp dword [ebp - 0x11e0], 0
jne 0x472a86
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x158], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x154], eax
sub esp, 0xc
mov ecx, esp
mov edx, dword [ebp - 0x15c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x158]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x154]
mov dword [ecx + 8], edx
lea ecx, [ebp - 0x160]
call fcn.00415f60
push eax
mov ecx, dword [ebp - 0x11d4]
add ecx, 0x218
call fcn.00473350
mov ecx, dword [ebp - 0x11d4]
add ecx, 0x234
mov eax, dword [ebp - 0x11d4]
mov edx, dword [eax + 0x234]
mov eax, dword [edx + 0x14]
call eax
push 0
push 0
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x42c
mov edx, dword [ecx + 0x5ec884]
push edx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x42c
add eax, 0x5ec678
push eax
mov ecx, dword [ebp - 0x15c]
push ecx
mov ecx, dword [ebp - 0x11d4]
call fcn.004c8720
mov dword [ebp - 0x150], 1
jmp 0x472aeb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x154], eax
sub esp, 0xc
mov edx, esp
mov eax, dword [ebp - 0x15c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x158]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x154]
mov dword [edx + 8], eax
lea ecx, [ebp - 0x160]
call fcn.00415f60
push eax
mov ecx, dword [ebp - 0x11d4]
add ecx, 0x218
call fcn.00473350
mov ecx, dword [ebp - 0x11d4]
add ecx, 0x234
mov edx, dword [ebp - 0x11d4]
mov eax, dword [edx + 0x234]
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp - 0x1178]
push eax
lea ecx, [ebp - 0x1168]
push ecx
mov edx, dword [ebp - 0x15c]
push edx
mov ecx, dword [ebp - 0x11d4]
call fcn.004c7f70
cmp dword [ebp - 0x150], 0
je 0x472b76
lea ecx, [ebp - 0x11bc]
call fcn.00457800
mov dword [ebp - 0x11e4], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x11d4]
mov dword [ebp - 0x11a4], eax
push 0x10
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x11b4]
push edx
call fcn.005289e0
add esp, 0xc
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x11b8], eax
lea ecx, [ebp - 0x11bc]
push ecx
mov ecx, 0x5fab20
call fcn.004ddb70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x11bc]
call fcn.0043ef10
cmp dword [0x5fa5b0], 0
je 0x472bc4
mov edx, dword [ebp - 0x15c]
push edx
mov ecx, 0x5fab20
call fcn.004dde80
mov dword [ebp - 0x11e8], eax
mov eax, dword [ebp - 0x11e8]
mov dword [ebp - 0x11c0], eax
cmp dword [ebp - 0x11c0], 0
je 0x472bc4
push 0
mov ecx, dword [ebp - 0x1178]
push ecx
mov edx, dword [ebp - 0x11c0]
push edx
call dword [0x5fa5b0]
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x160]
call fcn.00415e20
jmp 0x47272d
jmp 0x47258a
mov dword [ebp - 0x11d0], 0
push 0x5b15cc
lea eax, [ebp - 0x11d0]
push eax
call fcn.005286d1
mov dword [ebp - 0x11c4], 0
jmp 0x472c13
mov ecx, dword [ebp - 0x11c4]
add ecx, 1
mov dword [ebp - 0x11c4], ecx
mov edx, dword [ebp - 0x11c4]
cmp edx, dword [0x5f9708]
jge 0x472c82
mov eax, dword [ebp - 0x11c4]
imul eax, eax, 0x42c
cmp dword [eax + 0x5ec670], 0xffffffff
je 0x472c80
push 2
mov ecx, dword [ebp - 0x11c4]
imul ecx, ecx, 0x42c
mov edx, dword [ecx + 0x5ec670]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x11c4]
imul eax, eax, 0x42c
mov ecx, dword [eax + 0x5ec670]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 0x11c4]
imul edx, edx, 0x42c
mov dword [edx + 0x5ec670], 0xffffffff
jmp 0x472c04
mov dword [ebp - 4], 0xffffffff
mov eax, 0x472c96
ret