Function at 0x42b5c0
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
cmp eax, 3
ja case.0x42b5cb.0
jmp dword [eax*4 + 0x42b5f0]
mov dword [esp + 4], ecx
jmp 0x42b760
mov dword [esp + 4], ecx
jmp 0x42b600
mov dword [esp + 4], ecx
jmp 0x42bbb0
xor eax, eax
ret
sub esp, 0x700
xor eax, eax
push esi
mov esi, dword [esp + 0x708]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10
push edi
mov eax, dword [esi + 0x88]
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x30]
push 0
push edx
push 0x40
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], 1
call sub.WSOCK32.DLL_select
cmp eax, 0xffffffff
je 0x42b717
test eax, eax
je 0x42b717
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esi + 0x88]
push ecx
push 0
lea edx, [esp + 0x138]
push 0x5db
push edx
push eax
call sub.WSOCK32.DLL_recvfrom
cmp eax, 0xffffffff
je 0x42b621
lea ecx, [esp + 0x12c]
push str._final_
push ecx
call fcn.0051b3e0
add esp, 8
test eax, eax
je 0x42b621
mov edx, dword [esp + 0x1a]
push edx
call sub.WSOCK32.DLL_ntohs
and eax, 0xffff
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.0042b340
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x42b6f7
mov ecx, dword [esi + 4]
push edi
push ecx
call fcn.0042a2b0
mov eax, dword [eax]
push edi
mov dword [esp + 0x18], eax
mov word [eax + 6], 0x270f
mov edx, dword [esi + 4]
push edx
call fcn.0042a3c0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.0042a2d0
add esp, 0x18
jmp 0x42b621
mov edx, dword [esp + 0x1a]
push 5
push edx
call sub.WSOCK32.DLL_ntohs
push eax
mov eax, dword [esp + 0x24]
push eax
push esi
call fcn.0042b540
add esp, 0x10
jmp 0x42b621
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [esi + 0x8c]
pop edi
sub eax, edx
cmp eax, 0xbb8
jbe 0x42b74d
mov ecx, dword [esi + 0x88]
push ecx
call sub.WSOCK32.DLL_closesocket
push 3
push esi
mov dword [esi + 0x88], 0xffffffff
call fcn.0042b130
add esp, 8
xor eax, eax
pop esi
add esp, 0x700
ret
sub esp, 0x10c
push ebx
push ebp
push esi
lea ecx, [esp + 0xc]
push edi
mov edi, dword [esp + 0x120]
xor ebp, ebp
push ecx
mov eax, dword [edi + 0x88]
push ebp
lea edx, [esp + 0x20]
push ebp
push edx
push 0x40
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 1
call sub.WSOCK32.DLL_select
test eax, eax
jg 0x42b7b1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
mov eax, dword [0x5726e0]
mov ecx, 0x7ff
sub ecx, eax
push ebp
lea edx, [eax + 0x571e88]
mov eax, dword [edi + 0x88]
push ecx
push edx
push eax
call sub.WSOCK32.DLL_recv
cmp eax, 0xffffffff
je 0x42b927
cmp eax, ebp
je 0x42b927
mov ecx, dword [0x5726e0]
mov esi, 0x571e88
add ecx, eax
mov dword [0x5726e0], ecx
lea edx, [ecx - 6]
test edx, edx
jl 0x42b8fc
push 7
push str._final_
push esi
call fcn.0051bf40
add esp, 0xc
test eax, eax
je 0x42b89b
cmp dword [edi + 0x74], ebp
jne 0x42b89b
mov ecx, dword [0x5726e0]
cmp ecx, 6
jl 0x42b8fc
mov eax, dword [edi + 0x90]
cmp eax, 6
je 0x42b85d
cmp eax, 7
je 0x42b85d
mov ebx, dword [esi]
mov cx, word [esi + 4]
add esi, 4
push eax
push ecx
add esi, 2
call sub.WSOCK32.DLL_ntohs
push eax
push ebx
push edi
call fcn.0042b540
add esp, 0x10
jmp 0x42b881
sub ecx, esi
add ecx, 0x571e88
push ecx
push esi
push edi
call fcn.0042b970
add esp, 0xc
cmp eax, ebp
jge 0x42b87d
mov dword [edi + 0x74], 1
jmp 0x42b881
je 0x42b8f6
add esi, eax
mov ecx, dword [0x5726e0]
mov eax, esi
sub eax, 0x571e88
lea edx, [ecx - 6]
cmp eax, edx
jle 0x42b801
jmp 0x42b8fc
mov eax, dword [edi + 0x88]
push eax
call sub.WSOCK32.DLL_closesocket
mov dword [edi + 0x88], 0xffffffff
mov dword [0x5726e0], ebp
mov eax, dword [edi + 0x90]
cmp eax, 6
je 0x42b8df
cmp eax, 7
je 0x42b8df
push 3
push edi
call fcn.0042b130
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
push ebp
push edi
call fcn.0042b130
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov ecx, dword [0x5726e0]
mov edx, 0x571e88
sub edx, esi
add ecx, edx
push ecx
push esi
push 0x571e88
mov dword [0x5726e0], ecx
call fcn.0051b690
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov eax, dword [edi + 0x88]
push eax
call sub.WSOCK32.DLL_closesocket
mov dword [edi + 0x88], 0xffffffff
push edi
mov dword [0x5726e0], ebp
call fcn.0042bf30
push 3
push edi
call fcn.0042b130
add esp, 0xc
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
sub esp, 0x704
push ebx
push ebp
push esi
mov esi, dword [esp + 0x714]
push edi
xor ebp, ebp
mov eax, dword [esi + 0x6c]
xor edi, edi
xor ecx, ecx
cmp eax, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x34], ecx
jle 0x42bd88
mov edx, dword [esi + 8]
cmp dword [edx + 4], ebp
je 0x42bc07
inc edi
cmp ecx, 0x40
jae 0x42bc07
mov ebx, dword [edx]
mov dword [esp + ecx*4 + 0x38], ebx
mov ecx, dword [esp + 0x34]
inc ecx
mov dword [esp + 0x34], ecx
add edx, 0x1c
dec eax
jne 0x42bbed
cmp edi, ebp
mov dword [esp + 0x18], edi
jle 0x42bd88
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
push ebp
push ebp
push ecx
push 0x40
call sub.WSOCK32.DLL_select
cmp eax, 0xffffffff
je 0x42bd88
cmp eax, ebp
je 0x42bd88
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jle 0x42bd88
mov edx, dword [esi + 8]
mov ecx, dword [edx + ebp + 4]
lea eax, [edx + ebp]
test ecx, ecx
je 0x42bd71
mov edx, dword [eax]
lea ecx, [esp + 0x34]
push ecx
push edx
call sub.WSOCK32.DLL___WSAFDIsSet
test eax, eax
je 0x42bd71
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esi + 8]
push ecx
mov dword [esp + 0x1c], 0x10
mov ecx, dword [eax + ebp]
push 0
lea edx, [esp + 0x144]
push 0x5db
push edx
push ecx
call sub.WSOCK32.DLL_recvfrom
mov edx, dword [esi + 8]
mov edi, dword [edx + ebp + 0x10]
lea ecx, [edx + ebp]
mov edx, dword [esp + 0x28]
cmp edx, edi
jne 0x42bd71
mov dx, word [esp + 0x26]
cmp dx, word [ecx + 0xe]
jne 0x42bd71
cmp eax, 0xffffffff
je 0x42bd53
mov byte [esp + eax + 0x138], 0
lea eax, [esp + 0x138]
push str._final_
push eax
call fcn.0051b3e0
mov ecx, dword [esi + 8]
mov edi, eax
add esp, 8
mov ebx, dword [ecx + ebp + 4]
neg edi
sbb edi, edi
neg edi
cmp word [ebx + 6], 0x270f
jne 0x42bd13
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [esi + 8]
sub ax, word [edx + ebp + 8]
mov word [ebx + 6], ax
lea eax, [esp + 0x138]
push eax
push ebx
call fcn.0042a8a0
add esp, 8
test edi, edi
je 0x42bd71
mov ecx, dword [esi + 4]
push ecx
call fcn.0042a2a0
mov ecx, eax
mov eax, dword [esi + 0x70]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov edx, dword [esi + 0x7c]
push eax
push ebx
push edx
push 2
push esi
call dword [esi + 0x78]
add esp, 0x18
jmp 0x42bd66
mov ecx, dword [ecx + 4]
mov edx, dword [esi + 0x7c]
push 0xffffffffffffffff
push ecx
push edx
push 2
push esi
call dword [esi + 0x78]
add esp, 0x14
mov eax, dword [esi + 8]
mov dword [eax + ebp + 4], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x6c]
inc eax
add ebp, 0x1c
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x42bc4c
mov eax, dword [esi + 0x6c]
xor ebx, ebx
test eax, eax
jle 0x42bddb
xor edi, edi
mov ecx, dword [esi + 8]
mov eax, dword [edi + ecx + 4]
test eax, eax
je 0x42bdd0
mov edx, ecx
lea ebp, [edi + edx]
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp + 8]
cmp eax, 0xbb8
jbe 0x42bdd0
mov eax, dword [ebp + 4]
mov ecx, dword [esi + 0x7c]
push 0xffffffffffffffff
push eax
push ecx
push 2
push esi
call dword [esi + 0x78]
mov edx, dword [esi + 8]
add esp, 0x14
mov dword [edi + edx + 4], 0
mov eax, dword [esi + 0x6c]
inc ebx
add edi, 0x1c
cmp ebx, eax
jl 0x42bd93
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x42bedc
mov eax, dword [esi + 4]
push eax
call fcn.0042a2a0
mov ecx, dword [esi + 0x70]
add esp, 4
cmp ecx, eax
jl 0x42be05
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42bedc
mov eax, dword [esi + 0x6c]
xor ebx, ebx
test eax, eax
jle 0x42beed
xor edi, edi
mov ecx, dword [esi + 4]
mov ebp, dword [esi + 0x70]
push ecx
call fcn.0042a2a0
add esp, 4
cmp ebp, eax
jge 0x42beed
mov edx, dword [esi + 8]
mov eax, dword [edi + edx + 4]
test eax, eax
jne 0x42bec0
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.0042a2b0
mov ecx, dword [esi + 0x70]
mov ebp, dword [eax]
inc ecx
push ebp
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 8]
mov dword [edi + ecx + 4], ebp
mov edx, dword [esi + 8]
mov word [edi + edx + 0xc], 2
call fcn.0042a9c0
add esp, 0xc
push eax
call sub.WSOCK32.DLL_inet_addr
mov ecx, dword [esi + 8]
push ebp
mov dword [edi + ecx + 0x10], eax
call fcn.0042a9e0
add esp, 4
push eax
call sub.WSOCK32.DLL_htons
mov edx, dword [esi + 8]
push 0x10
mov word [edi + edx + 0xe], ax
mov eax, dword [esi + 8]
mov ebp, dword [ebp + 8]
add eax, edi
shl ebp, 2
lea ecx, [eax + 0xc]
mov edx, dword [ebp + 0x535a54]
push ecx
mov ecx, dword [ebp + 0x546a9c]
push 0
push edx
mov edx, dword [eax]
push ecx
push edx
call sub.WSOCK32.DLL_sendto
call sub.KERNEL32.DLL_GetTickCount
mov ecx, dword [esi + 8]
mov dword [edi + ecx + 8], eax
mov eax, dword [esi + 0x6c]
inc ebx
add edi, 0x1c
cmp ebx, eax
jl 0x42be14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x704
ret
push esi
call fcn.0042bf00
push 0
push esi
call fcn.0042b130
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x704
ret