Function at 0x405b30
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x641248
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x24], ebx
je 0x405b6e
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push edi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
push 0x3ff
lea ecx, [ebp - 0x433]
push ebx
push ecx
mov word [ebp - 0x34], 0x124
mov dword [ebp - 0x32], 0x20009206
mov dword [ebp - 0x2e], ebx
mov byte [ebp - 0x434], bl
call fcn.006100a0
add esp, 0xc
xor edi, edi
nop
mov ecx, esi
call fcn.00404180
test eax, eax
je 0x405c46
mov eax, dword [esi + 0x48]
push ebx
push 0xa
lea edx, [ebp - 0x34]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x405c5d
mov edx, dword [esi + 0x48]
push ebx
push 0x400
lea ecx, [ebp - 0x434]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
cmp eax, ecx
je 0x405c72
cmp eax, ebx
jne 0x405c0f
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x405bb0
or ecx, 0xffffffff
cmp byte [ebp - 0x434], 0x24
mov eax, dword [ebp - 0x434]
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x34], eax
mov ax, word [ebp - 0x42c]
mov dword [ebp - 0x30], edx
mov word [ebp - 0x2c], ax
je 0x405c83
mov dword [ebp - 4], ecx
xor ecx, ecx
mov word [ebp - 0x28], cx
lea eax, [ecx - 3]
jmp 0x405df3
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, 0xfffffffe
jmp 0x405df3
mov dword [ebp - 4], 0xffffffff
xor ecx, ecx
mov word [ebp - 0x28], cx
or eax, 0xffffffff
jmp 0x405df3
mov dword [ebp - 4], ecx
xor edx, edx
mov word [ebp - 0x28], dx
lea eax, [edx - 2]
jmp 0x405df3
mov eax, dword [ebp - 0x42e]
cmp eax, ebx
je 0x405d85
cmp dword [ebp - 0x432], 0x55aa0000
je 0x405d03
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x32]
push ecx
lea edx, [ebp + 8]
push str.Wrong_type_of_block._Type_received:__04Xh.
push edx
call fcn.00405ab0
add esp, 0xc
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
xor ecx, ecx
mov word [ebp - 0x28], cx
lea eax, [ecx - 5]
jmp 0x405df3
cmp eax, 0xd
je 0x405d19
mov dword [ebp - 4], ecx
xor edx, edx
mov word [ebp - 0x28], dx
lea eax, [edx - 6]
jmp 0x405df3
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x42a]
mov dword [esi + 0x2d14], 0x24
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x426]
mov dword [eax + 0x14], edx
mov dl, byte [ebp - 0x422]
mov byte [esi + 0x1e], dl
mov edx, dword [ebp - 0x421]
mov dword [esi + 0x20], edx
mov byte [esi + 0x2d10], 1
movzx edx, word [eax + 0x12]
mov word [esi + 0x18], dx
cmp word [esi + 0x18], 5
movzx edx, word [eax + 0x10]
mov word [esi + 0x1a], dx
mov ax, word [eax + 0x16]
mov word [esi + 0x1c], ax
jb 0x405d7a
mov dword [esi + 0x2d14], 0x25
mov dword [ebp - 4], ecx
xor ecx, ecx
mov word [ebp - 0x28], cx
jmp 0x405df1
cmp dword [ebp - 0x432], 0x55aa0000
je 0x405dc5
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x32]
push ecx
lea edx, [ebp + 8]
push str.Wrong_type_of_block._Type_received:__04Xh.
push edx
call fcn.00405ab0
add esp, 0xc
jmp 0x405ccc
mov edx, dword [ebp + 8]
push 0x34
push ebx
push edx
mov dword [esi + 0x2d14], 0x10
call fcn.006100a0
add esp, 0xc
mov byte [esi + 0x2d10], bl
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov word [ebp - 0x28], ax
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ebp - 0x18], ebx
pop esi
mov dword [ebp - 0x14], 7
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4