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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8fc
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x8cc], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x8ca]
push ecx
call fcn.00409600
add esp, 0xc
lea edx, [ebp - 0x8cc]
mov dword [ebp - 0x8f0], edx
cmp dword [ebp + 0x14], 0
je 0x40517d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8f0], eax
mov ecx, 2
imul ecx, ecx, 0
xor edx, edx
mov eax, dword [ebp - 0x8f0]
mov word [eax + ecx], dx
mov dword [ebp - 0x8d4], 0
mov dword [ebp - 0x8d0], 0
mov dword [ebp - 0x8dc], 0
mov dword [ebp - 0x8e8], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x4051cb
jmp 0x405409
cmp dword [ebp + 0xc], 0
jne 0x4051db
jmp 0x405409
mov byte [ebp - 0xcc], 0
push 0xc7
push 0
lea edx, [ebp - 0xcb]
push edx
call fcn.00409600
add esp, 0xc
xor eax, eax
mov word [ebp - 0x8d8], ax
push 0
push 2
lea ecx, [ebp - 0xcc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x8dc], eax
cmp dword [ebp - 0x8dc], 0xffffffff
je 0x405230
cmp dword [ebp - 0x8dc], 0
jne 0x40523a
jmp 0x405409
mov cx, word [ebp - 0xcc]
mov word [ebp - 0x8d8], cx
mov dword [ebp - 0x8d0], 0
movzx edx, word [ebp - 0x8d8]
add edx, 2
push edx
call fcn.00407147
add esp, 4
mov dword [ebp - 0x8f8], eax
mov eax, dword [ebp - 0x8f8]
mov dword [ebp - 0x8d4], eax
movzx ecx, word [ebp - 0x8d8]
cmp ecx, dword [ebp - 0x8d0]
jle 0x405303
push 0
movzx edx, word [ebp - 0x8d8]
sub edx, dword [ebp - 0x8d0]
push edx
mov eax, dword [ebp - 0x8d4]
add eax, dword [ebp - 0x8d0]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x8dc], eax
cmp dword [ebp - 0x8dc], 0xffffffff
je 0x4052c7
cmp dword [ebp - 0x8dc], 0
jne 0x4052ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x8e4], eax
mov eax, dword [ebp - 0x8e4]
add eax, 0xa
mov dword [ebp - 0x8e4], eax
jmp 0x405409
mov ecx, dword [ebp - 0x8d0]
add ecx, dword [ebp - 0x8dc]
mov dword [ebp - 0x8d0], ecx
jmp 0x405277
cmp dword [ebp - 0x8d0], 5
jge 0x405318
jmp 0x405409
mov edx, dword [ebp - 0x8d0]
sub edx, 5
mov dword [ebp - 0x8d0], edx
push 5
mov eax, dword [ebp - 0x8d4]
push eax
push str.AS101
call fcn.00411405
add esp, 0xc
mov dword [ebp - 0x8f4], eax
cmp dword [ebp - 0x8f4], 0
je 0x405356
jmp 0x405409
mov dword [ebp - 0x8e0], 0
jmp 0x405371
mov ecx, dword [ebp - 0x8e0]
add ecx, 1
mov dword [ebp - 0x8e0], ecx
mov edx, dword [ebp - 0x8e0]
cmp edx, dword [ebp - 0x8d0]
jge 0x4053a2
mov eax, dword [ebp - 0x8d4]
add eax, dword [ebp - 0x8e0]
movzx ecx, byte [eax + 5]
not ecx
mov edx, dword [ebp - 0x8d4]
add edx, dword [ebp - 0x8e0]
mov byte [edx + 5], cl
jmp 0x405362
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x8d0]
jl 0x4053de
mov edx, dword [ebp - 0x8d0]
push edx
mov eax, 1
imul eax, eax, 5
add eax, dword [ebp - 0x8d4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040a260
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x8d0]
mov dword [edx], eax
jmp 0x4053ff
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, 1
imul eax, eax, 5
add eax, dword [ebp - 0x8d4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040a260
add esp, 0xc
mov dword [ebp - 0x8e8], 1
cmp dword [ebp - 0x8d4], 0
je 0x405458
mov edx, dword [ebp - 0x8d4]
mov dword [ebp - 0x8ec], edx
mov eax, dword [ebp - 0x8ec]
push eax
call fcn.0040753b
add esp, 4
cmp dword [ebp - 0x8ec], 0
jne 0x405442
mov dword [ebp - 0x8fc], 0
jmp 0x405458
mov dword [ebp - 0x8d4], 0x8123
mov ecx, dword [ebp - 0x8d4]
mov dword [ebp - 0x8fc], ecx
mov dword [ebp - 0x8d4], 0
mov eax, dword [ebp - 0x8e8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a14
mov esp, ebp
pop ebp
ret