Function at 0x412e00
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.004054f0
add esp, 0xc
test esi, esi
lea edi, [esp + 0xec]
mov dword [esp + 0x14], edi
je 0x412e68
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 0x412fdb
test ebx, ebx
je 0x412fdb
push 0xc7
push eax
lea edx, [esp + 0x2d]
push edx
mov byte [esp + 0x30], al
call fcn.004054f0
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 0x413075
test eax, eax
je 0x413075
movzx edi, word [esp + 0x24]
lea ecx, [edi + 2]
push ecx
xor esi, esi
call fcn.00401fcc
add esp, 4
test edi, edi
mov dword [esp + 0x18], eax
jle 0x412fc6
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 0x412fa9
test eax, eax
je 0x412fa9
add esi, eax
cmp edi, esi
jg 0x412ee0
cmp esi, 5
jl 0x412fc6
mov ebp, dword [esp + 0x18]
sub esi, 5
mov eax, 5
mov ecx, ebp
mov edx, 0x426140
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x412f44
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x412f28
test eax, eax
je 0x412ff4
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x412f9b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x412ff4
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x412f9b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x412ff4
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x412f9b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x412ff4
movzx edi, byte [edx]
movzx ecx, byte [ecx]
sub edi, ecx
je 0x412ff4
test edi, edi
mov eax, 1
jg 0x412ff6
or eax, 0xffffffff
jmp 0x412ff6
mov eax, dword [esp + 0x14]
push 0x421f48
push 0x3ff
push eax
call fcn.00401201
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412fd7
push eax
call fcn.00401dd1
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.00401148
add esp, 0x8e0
ret
xor eax, eax
test eax, eax
je 0x413013
mov edx, dword [esp + 0x14]
push 0x421fa8
push 0x3ff
push edx
call fcn.00401201
add esp, 0xc
jmp 0x412fc6
test esi, esi
jle 0x41302e
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 0x413020
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
add ebp, 5
cmp eax, esi
jl 0x413059
mov eax, dword [esp + 0x1c]
push esi
push ebp
push eax
call fcn.004066a0
mov dword [edi], esi
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x412fc6
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push ecx
call fcn.004066a0
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x412fc6
push 0x421ee8
push 0x3ff
push edi
call fcn.00401201
add esp, 0xc
jmp 0x412fd7