Function at 0x10004f26
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
push edi
mov dword [ebp - 0x20c], 0
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [ebp - 8], eax
push 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10004f68
or eax, 0xffffffff
jmp 0x100052bb
mov byte [ebp - 0x208], 0
mov edx, 1
test edx, edx
je 0x100052bb
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x210], 0
cmp dword [ebp - 0x210], 0x64
jae 0x100050b6
lea eax, [ebp - 0x244]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
je 0x10004fc8
mov eax, 0xfffffffe
jmp 0x100052bb
cmp dword [ebp - 0x244], 1
jne 0x10005084
mov dword [ebp - 0x210], 0
push 0
push 1
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
jne 0x1000500b
or eax, 0xffffffff
jmp 0x100052bb
cmp dword [ebp - 0x20c], 0
jle 0x10005082
mov ecx, dword [ebp - 0x218]
mov dl, byte [ebp - 0x214]
mov byte [ebp + ecx - 0x208], dl
cmp dword [ebp - 0x218], 0x200
jne 0x1000503d
mov dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x248], 0
jne 0x10005082
cmp dword [ebp - 0x218], 3
jne 0x10005082
mov byte [ebp - 0x205], 0
mov dword [ebp - 0x218], 0
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov dword [ebp - 0x248], eax
jmp 0x100050b1
mov edx, dword [ebp - 0x210]
add edx, 1
mov dword [ebp - 0x210], edx
cmp dword [ebp - 0x248], 0
jne 0x100050a9
push 0x258
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100050b1
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10004f9a
mov eax, dword [ebp - 0x218]
mov byte [ebp + eax - 0x208], 0
cmp dword [ebp - 4], 1
jne 0x10005105
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.1000d575
add esp, 4
mov dword [ebp - 0x24c], eax
mov edx, dword [ebp - 0x24c]
mov dword [ebp + 0x8c0], edx
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0x8c0]
push edx
call fcn.10006150
cmp dword [ebp - 0x248], 0
jne 0x10005118
mov eax, 2
jmp 0x100052bb
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0x162
ja 0x10005165
cmp dword [ebp - 0x250], 0x162
je 0x10005218
cmp dword [ebp - 0x250], 0xfa
ja case.0x10005194.1
mov edx, dword [ebp - 0x250]
xor ecx, ecx
mov cl, byte [edx + 0x100052d7]
jmp dword [ecx*4 + 0x100052c3]
mov eax, dword [ebp - 0x250]
sub eax, 0x1a5
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0x85
ja case.0x10005194.1
mov edx, dword [ebp - 0x250]
xor ecx, ecx
mov cl, byte [edx + 0x100053da]
jmp dword [ecx*4 + 0x100053d2]
jmp 0x100052b6
push 0
sub esp, 0xcac
mov ecx, 0x32b
lea esi, [ebp + 0x10]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10005460
test eax, eax
jne 0x100051cd
or eax, 0xffffffff
jmp 0x100052bb
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x100052b6
mov eax, dword [ebp - 4]
push eax
sub esp, 0xcac
mov ecx, 0x32b
lea esi, [ebp + 0x10]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10005460
test eax, eax
jne 0x1000520a
or eax, 0xffffffff
jmp 0x100052bb
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x100052b6
push 4
sub esp, 0xcac
mov ecx, 0x32b
lea esi, [ebp + 0x10]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10005460
test eax, eax
jne 0x10005242
or eax, 0xffffffff
jmp 0x100052bb
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x100052b6
mov eax, 3
jmp 0x100052bb
push 5
sub esp, 0xcac
mov ecx, 0x32b
lea esi, [ebp + 0x10]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10005460
test eax, eax
jne 0x1000527e
or eax, 0xffffffff
jmp 0x100052bb
mov eax, 0x30
jmp 0x100052bb
push 5
sub esp, 0xcac
mov ecx, 0x32b
lea esi, [ebp + 0x10]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10005460
test eax, eax
jne 0x100052af
or eax, 0xffffffff
jmp 0x100052bb
mov eax, 1
jmp 0x100052bb
jmp 0x10004f6f
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xcb4