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

Disassembly:
sub esp, 0x8e0
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x8dc], eax
mov eax, dword [esp + 0x8e8]
push ebx
push ebp
mov ebp, dword [esp + 0x8ec]
push esi
push edi
mov ebx, ecx
push 0x7fe
lea ecx, [esp + 0xf2]
push 0
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov esi, edx
mov word [esp + 0xf8], 0
call fcn.00405a30
add esp, 0xc
test esi, esi
lea edi, [esp + 0xec]
mov dword [esp + 0x14], edi
je 0x412e78
mov dword [esp + 0x14], esi
mov edi, esi
mov word [edi], 0
mov esi, dword [ebp]
xor eax, eax
test esi, esi
mov dword [esp + 0x10], eax
je 0x412feb
test ebx, ebx
je 0x412feb
push 0xc7
push eax
lea edx, [esp + 0x2d]
push edx
mov byte [esp + 0x30], al
call fcn.00405a30
mov ebx, dword [sym.imp.WS2_32.dll_recv]
add esp, 0xc
push 0
push 2
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
cmp eax, 0xffffffff
je 0x413085
test eax, eax
je 0x413085
movzx edi, word [esp + 0x24]
lea ecx, [edi + 2]
push ecx
xor esi, esi
call fcn.00401fd3
add esp, 4
test edi, edi
mov dword [esp + 0x18], eax
jle 0x412fd6
nop
mov eax, dword [esp + 0x18]
push 0
mov edx, edi
sub edx, esi
push edx
mov edx, dword [ebp]
lea ecx, [esi + eax]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x412fb9
test eax, eax
je 0x412fb9
add esi, eax
cmp edi, esi
jg 0x412ef0
cmp esi, 5
jl 0x412fd6
mov ebp, dword [esp + 0x18]
sub esi, 5
mov eax, 5
mov ecx, ebp
mov edx, str.AS101
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x412f54
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x412f38
test eax, eax
je 0x413004
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x412fab
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x413004
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x412fab
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x413004
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x412fab
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x413004
movzx edi, byte [edx]
movzx ecx, byte [ecx]
sub edi, ecx
je 0x413004
test edi, edi
mov eax, 1
jg 0x413006
or eax, 0xffffffff
jmp 0x413006
mov eax, dword [esp + 0x14]
push 0x421f58
push 0x3ff
push eax
call fcn.00401224
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412fe7
push eax
call fcn.00401dd8
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x8ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040113c
add esp, 0x8e0
ret
xor eax, eax
test eax, eax
je 0x413023
mov edx, dword [esp + 0x14]
push 0x421fb8
push 0x3ff
push edx
call fcn.00401224
add esp, 0xc
jmp 0x412fd6
test esi, esi
jle 0x41303e
lea eax, [ebp + 5]
mov ecx, esi
lea esp, [esp]
mov dl, byte [eax]
not dl
mov byte [eax], dl
add eax, 1
sub ecx, 1
jne 0x413030
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
add ebp, 5
cmp eax, esi
jl 0x413069
mov eax, dword [esp + 0x1c]
push esi
push ebp
push eax
call fcn.00406be0
mov dword [edi], esi
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x412fd6
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push ecx
call fcn.00406be0
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x412fd6
push 0x421ef8
push 0x3ff
push edi
call fcn.00401224
add esp, 0xc
jmp 0x412fe7