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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a893
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x48d744]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x110], ecx
push 1
mov ecx, dword [ebp - 0x110]
call fcn.0040dfa0
mov eax, dword [ebp - 0x110]
cmp dword [eax + 0x6c], 5
je 0x40e991
xor al, al
jmp 0x40ee6a
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0x110]
cmp dword [ecx + 0x2c], 0xffffffff
je 0x40ee67
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x400
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x18], 0
jne 0x40e9de
mov dword [ebp - 0x18], 0x19000
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x18]
jle 0x40e9ec
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.004494ce
add esp, 4
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x60], 0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0x84]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00406c40
mov dword [ebp - 4], 0
push 0x483140
lea ecx, [ebp - 0x38]
call fcn.0040f0c0
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 0x80]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040f0c0
lea ecx, [ebp - 0x38]
call fcn.00405810
test eax, eax
je 0x40ea88
lea ecx, [ebp - 0x8c]
call fcn.00419fc0
lea ecx, [ebp - 0x38]
call fcn.00406d70
push eax
lea ecx, [ebp - 0x8c]
call fcn.004198b0
lea ecx, [ebp - 0x8c]
call fcn.0041a080
mov ecx, dword [ebp - 0x110]
cmp dword [ecx + 0x7c], 0
je 0x40edd0
lea ecx, [ebp - 0xb0]
call fcn.00407f50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00406d70
push eax
lea ecx, [ebp - 0xb0]
call fcn.00407da0
push 2
lea ecx, [ebp - 0xb0]
call fcn.00407a80
lea ecx, [ebp - 0x38]
call fcn.00406d70
push eax
lea ecx, [ebp - 0xb0]
call fcn.004079c0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov edx, 1
test edx, edx
je 0x40ed6f
xor eax, eax
cmp dword [ebp - 0x40], 0x32000000
setge al
mov byte [ebp - 0xba], al
mov ecx, dword [ebp - 0x110]
cmp dword [ecx + 0x10], 0
jbe 0x40eb35
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x40]
cmp eax, dword [edx + 0x10]
jb 0x40eb35
mov dword [ebp - 0x114], 1
jmp 0x40eb3f
mov dword [ebp - 0x114], 0
mov cl, byte [ebp - 0x114]
mov byte [ebp - 0xb9], cl
movzx edx, byte [ebp - 0xba]
test edx, edx
jne 0x40eb6d
movzx eax, byte [ebp - 0xb9]
test eax, eax
jne 0x40eb6d
mov dword [ebp - 0x118], 0
jmp 0x40eb77
mov dword [ebp - 0x118], 1
mov cl, byte [ebp - 0x118]
mov byte [ebp - 0xbb], cl
movzx edx, byte [ebp - 0xbb]
cmp edx, 1
jne 0x40eba1
mov eax, dword [ebp - 0x110]
mov dword [eax + 0x68], 3
jmp 0x40ed6f
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00453010
add esp, 0xc
mov ecx, dword [ebp - 0x110]
call fcn.0040e020
movzx eax, al
test eax, eax
jne 0x40ebd7
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 0x68], 1
jmp 0x40ed6f
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x110]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
jne 0x40ec10
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x110]
mov dword [eax + 0x68], 2
jmp 0x40ed6f
cmp dword [ebp - 0x44], 0
jne 0x40ec28
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 0x68], 3
jmp 0x40ed6f
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x44]
mov dword [ebp - 0x40], edx
lea ecx, [ebp - 0xb0]
call fcn.00407af0
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0xb0]
call fcn.00407b10
lea ecx, [ebp - 0xb0]
call fcn.00407b70
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x48], ecx
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], 0
fild qword [ebp - 0x120]
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], 0
fild qword [ebp - 0x128]
fmul qword [0x4857d0]
fdivp st(1)
fmul qword [0x4857f8]
fnstcw word [ebp - 0x12a]
movzx eax, word [ebp - 0x12a]
or eax, 0xc00
mov dword [ebp - 0x130], eax
fldcw word [ebp - 0x130]
fistp qword [ebp - 0x138]
fldcw word [ebp - 0x12a]
mov ecx, dword [ebp - 0x138]
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x44], ecx
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0x60]
add ecx, 1
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x60], ecx
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x60]
xor edx, edx
mov ecx, 0xc8
div ecx
test edx, edx
jne 0x40ed32
push 0
mov ecx, dword [ebp - 0x110]
call fcn.0040de00
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x18]
jg 0x40ed5b
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x40]
cmp eax, 0x400
jle 0x40ed50
mov dword [ebp - 0x14], 0x400
jmp 0x40ed59
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
jmp 0x40ed6a
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x68], 3
jmp 0x40ed6f
jmp 0x40eaf0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0x40]
cmp ecx, dword [ebp - 0x18]
jb 0x40edb2
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x44], 0x64
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x110]
call fcn.0040da40
push 0
mov ecx, dword [ebp - 0x110]
call fcn.0040de00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb0]
call fcn.00407f90
jmp 0x40edd4
mov byte [ebp - 0xd], 0
cmp dword [ebp - 0x3c], 0
je 0x40edf9
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
push edx
call fcn.0044ad2a
add esp, 4
mov dword [ebp - 0x3c], 0
movzx eax, byte [ebp - 0xd]
cmp eax, 1
jne 0x40ee4b
lea ecx, [ebp - 0x104]
call fcn.00419fc0
mov ecx, dword [ebp - 0x110]
mov edx, dword [ecx + 0x7c]
push edx
lea ecx, [ebp - 0x104]
call fcn.004198b0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0x7c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00406d70
push eax
lea ecx, [ebp - 0x104]
call fcn.00419870
lea ecx, [ebp - 0x104]
call fcn.0041a080
push 0
mov ecx, dword [ebp - 0x110]
call fcn.0040dfa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00406d50
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0044ab62
mov esp, ebp
pop ebp
ret