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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d680
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
mov ebx, ecx
push esi
push edi
mov edx, dword [ebx + 0x18]
mov edi, dword [ebx + 0x1c]
mov eax, edx
xor esi, esi
or eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x21], 0
je 0x4eaf0f
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x20]
sub eax, ecx
mov ecx, dword [ebx + 0x34]
sbb ecx, dword [ebx + 0x24]
add eax, 1
mov dword [ebp - 0x1c], eax
adc ecx, esi
mov dword [ebp - 0x18], ecx
jmp 0x4eaf15
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov eax, dword [ebx + 0x80]
mov eax, dword [eax + 0x2b8]
cmp eax, esi
mov dword [ebp - 0x2c], eax
je 0x4eaf61
mov esi, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
mov ecx, esi
or ecx, eax
je 0x4eaf61
mov eax, edx
mov ecx, edi
sub eax, 1
sbb ecx, 0
cmp esi, eax
jne 0x4eaf61
cmp dword [ebx + 0x34], ecx
jne 0x4eaf61
mov eax, edx
or eax, edi
je 0x4eaf61
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add esi, ecx
adc eax, 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov eax, esi
or eax, ecx
jne 0x4eaf92
or edx, edi
je 0x4eaf92
push str.Completed0._n
mov ecx, ebx
call fcn.004e9e80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x4eafa5
cmp eax, 0x2da0
jg 0x4eafe2
mov dword [ebp + 0x10], eax
jmp 0x4eafe9
test ecx, ecx
jl 0x4eafe2
jg 0x4eafaf
test esi, esi
jbe 0x4eafe2
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x3c]
mov edi, dword [ebp - 0x18]
mov ecx, edx
add ecx, 0x2da0
adc eax, 0
cmp eax, edi
jl 0x4eafd8
jg 0x4eafce
cmp ecx, dword [ebp - 0x1c]
jbe 0x4eafd8
mov ecx, dword [ebp - 0x1c]
sub ecx, edx
mov dword [ebp + 0x10], ecx
jmp 0x4eafef
mov ecx, 0x2da0
mov dword [ebp + 0x10], ecx
jmp 0x4eafef
mov dword [ebp + 0x10], 0x2da0
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x80]
cmp dword [eax + 0x24], 2
jne 0x4eb1c6
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx]
push eax
push ecx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
xor esi, esi
push ecx
mov ecx, ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x14]
cmp eax, esi
mov dword [ebp - 0x28], eax
je 0x4eb22f
mov esi, dword [ebp - 0x20]
cmp ecx, esi
jne 0x4eb176
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4eb176
mov edi, dword [ebx + 0x38]
mov eax, ecx
cdq
add eax, edi
mov edi, dword [ebx + 0x3c]
adc edx, edi
mov edi, dword [ebp - 0x18]
cmp edx, edi
jl 0x4eb06d
jg 0x4eb05d
cmp eax, dword [ebp - 0x1c]
jb 0x4eb06d
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
or edx, edi
jne 0x4eb176
jmp 0x4eb070
mov edi, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
test eax, eax
je 0x4eb0a3
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x4eb163
sub eax, 0x2733
neg eax
sbb eax, eax
and al, 0xfd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov al, byte [ebx + 0x2b1]
test al, al
je 0x4eb0c0
mov ecx, dword [ebp - 0x14]
mov byte [ebx + 0x2b1], 0
mov byte [ebp - 0x21], 1
jmp 0x4eb22f
mov al, byte [ebx + 0x8f]
test al, al
jne 0x4eb104
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
cdq
add ecx, eax
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx]
adc eax, edx
lea edx, [ebp - 0x34]
push eax
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push edx
mov ecx, ebx
call dword [esi + 0xc]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
add ecx, esi
add edx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], edx
jmp 0x4eb107
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4eb163
cmp ecx, dword [ebp - 0x20]
jne 0x4eb163
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4eb138
mov al, byte [ebx + 0x90]
test al, al
je 0x4eb163
mov eax, dword [ebx + 0x2b4]
test eax, eax
je 0x4eb163
mov al, byte [ebx + 0x2b2]
test al, al
je 0x4eb163
mov esi, dword [ebx + 0x38]
mov eax, ecx
cdq
add esi, eax
mov eax, dword [ebx + 0x3c]
adc eax, edx
cmp eax, edi
jl 0x4eb070
jg 0x4eb158
cmp esi, dword [ebp - 0x1c]
jb 0x4eb070
mov edx, dword [ebp - 0x1c]
or edx, edi
je 0x4eb070
mov al, byte [ebx + 0x8f]
test al, al
jne 0x4eb070
jmp 0x4eb22f
test esi, esi
jne 0x4eb22f
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4eb22f
test ecx, ecx
jne 0x4eb231
mov eax, dword [ebx + 0x3c]
cmp eax, edi
jl 0x4eb1b1
jg 0x4eb1a6
mov edx, dword [ebx + 0x38]
mov eax, dword [ebp - 0x1c]
cmp edx, eax
jb 0x4eb1b1
jmp 0x4eb1a9
mov eax, dword [ebp - 0x1c]
or eax, edi
jne 0x4eb5e1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x2ac]
test eax, eax
jle 0x4eb217
cmp eax, ecx
jl 0x4eb1d6
mov eax, ecx
mov edx, dword [ebx + 0x2a8]
mov ecx, eax
lea edi, [ebx + 0x2dc]
lea esi, [edx + ebx + 0xa8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x2a8]
mov ecx, dword [ebx + 0x2ac]
add edx, eax
sub ecx, eax
mov dword [ebx + 0x2a8], edx
mov dword [ebx + 0x2ac], ecx
jmp 0x4eb22a
push 0
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebx + 0x2dc]
push eax
push ecx
call sub.WSOCK32.dll_recv
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jle 0x4eb57c
mov edx, dword [ebx + 0x80]
cmp dword [edx + 0x24], 2
je 0x4eb385
mov al, byte [ebx + 0x90]
test al, al
je 0x4eb270
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x14]
push ecx
lea eax, [ebx + 0x2dc]
push edx
push eax
mov ecx, ebx
call fcn.004eaa20
jmp 0x4eb37f
lea edx, [ebp + 0xc]
lea esi, [ebx + 0x2dc]
push edx
push esi
push ecx
mov ecx, ebx
mov dword [ebp + 0xc], 0
call fcn.004eb670
test eax, eax
je 0x4eb36e
mov eax, dword [ebp + 0xc]
cmp eax, 0xfffffff6
jne 0x4eb4b3
mov eax, dword [ebp - 0x14]
add eax, 0x30
push eax
call fcn.0056649c
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x4eb2cc
mov eax, 0xfffffff7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 0x80]
mov eax, dword [ebp + 8]
mov edi, eax
mov edx, dword [ecx + 0xe0]
mov ecx, 0xc
mov esi, dword [edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
lea edi, [eax + 0x30]
mov eax, ecx
lea esi, [ebx + 0x2dc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
add esi, 0x30
test eax, eax
mov dword [ebp - 0x14], esi
jl 0x4eb344
jg 0x4eb319
mov eax, dword [ebp - 0x1c]
test eax, eax
jbe 0x4eb344
mov edi, dword [ebx + 0x38]
mov eax, esi
cdq
mov ecx, eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x30], ecx
add ecx, edi
adc edx, eax
mov eax, dword [ebp - 0x18]
cmp edx, eax
jl 0x4eb33f
mov eax, dword [ebp - 0x1c]
jg 0x4eb33b
cmp ecx, eax
jbe 0x4eb33f
sub eax, edi
jmp 0x4eb346
mov eax, dword [ebp - 0x30]
jmp 0x4eb346
mov eax, esi
cmp eax, esi
jge 0x4eb34f
mov esi, eax
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x20]
push ecx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0x10]
push esi
call fcn.004ec5d0
push esi
mov dword [ebp - 0x28], eax
call fcn.005664c5
add esp, 4
jmp 0x4eb382
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push eax
push esi
lea ecx, [ebx + 0x10]
call fcn.004ec5d0
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4eb4c6
cmp ecx, dword [ebp - 0x20]
jne 0x4eb4c6
mov edi, dword [ebx + 0x38]
mov eax, ecx
mov ecx, dword [ebx + 0x40]
cdq
add edi, eax
mov dword [ebx + 0x38], edi
mov esi, dword [ebx + 0x3c]
adc esi, edx
add ecx, eax
mov dword [ebx + 0x40], ecx
mov edi, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x64]
mov dword [ebx + 0x3c], esi
adc edi, edx
mov dword [ebx + 0x44], edi
mov esi, dword [ecx]
add esi, eax
mov dword [ecx], esi
mov edi, dword [ecx + 4]
adc edi, edx
mov dword [ecx + 4], edi
mov ecx, dword [ebx + 0x68]
mov eax, dword [ebp - 0x14]
mov esi, dword [ecx]
cdq
add esi, eax
mov dword [ecx], esi
mov eax, dword [ecx + 4]
lea esi, [ebx + 0x2cc]
adc eax, edx
push esi
mov dword [ecx + 4], eax
call fcn.0054f68f
mov eax, dword [esi]
mov ecx, dword [ebx + 0x2c0]
mov esi, dword [ebx + 0x80]
add esp, 4
sub eax, ecx
mov dword [ebx + 0x2d8], eax
mov dword [ebp + 0xc], eax
je 0x4eb4a0
mov edi, dword [esi + 0x36c]
test edi, edi
mov dword [ebp + 8], edi
je 0x4eb479
fild dword [ebp + 8]
lea ecx, [edi + 1]
fstp qword [ebp - 0x40]
fild dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
fstp qword [ebp - 0x1c]
fild dword [ebp + 0xc]
fst qword [ebp - 0x30]
fld qword [ebp - 0x40]
fmul qword [esi + 0x340]
fadd qword [ebp - 0x1c]
fdivrp st(1)
fst qword [ebp - 0x38]
fstp qword [esi + 0x340]
fld qword [ebp - 0x1c]
fsub qword [ebp - 0x38]
fld qword [0x5b8f68]
call fcn.00550300
fdiv qword [ebp - 0x30]
fld qword [ebp - 0x40]
fmul qword [esi + 0x350]
fdiv qword [ebp - 0x30]
faddp st(1)
fstp qword [esi + 0x350]
fld qword [ebp - 0x1c]
jmp 0x4eb482
fild dword [ebp + 0xc]
fst qword [esi + 0x340]
fcom qword [esi + 0x360]
fnstsw ax
test ah, 0x41
jne 0x4eb497
fstp qword [esi + 0x360]
jmp 0x4eb499
fstp st(0)
inc edi
mov dword [esi + 0x36c], edi
mov ecx, ebx
call fcn.004eaa00
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x74], 0
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x20]
mov esi, eax
mov eax, dword [ebp - 0x14]
push esi
push edx
push eax
lea ecx, [ebp - 0x100]
push str.File_write_error__Received__d_bytes__wrote__d_bytes__errCode___ld_n
push ecx
call fcn.0054ea2a
add esp, 0x14
lea edx, [ebp - 0x100]
mov ecx, ebx
push edx
call fcn.004e9e80
cmp esi, 5
jne 0x4eb50c
mov eax, dword [0x63f12c]
mov ecx, dword [ebx + 0x6c]
push eax
call fcn.004ec300
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x38]
xor edx, edx
add eax, ecx
mov dword [ebx + 0x38], eax
mov edi, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x64]
adc edi, edx
mov dword [ebx + 0x3c], edi
mov esi, dword [eax]
add esi, ecx
mov dword [eax], esi
mov ecx, dword [eax + 4]
adc ecx, edx
mov dword [eax + 4], ecx
mov ecx, ebx
call fcn.004ebef0
test eax, eax
je 0x4eb555
mov eax, 0xfffffffb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 0x60]
mov edx, dword [ecx + 0x10]
lea ecx, [ebx + 0x10]
push edx
call fcn.004ec4d0
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 0xffffffff
jne 0x4eb5e1
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
mov eax, dword [ebp + 8]
push eax
push esi
lea ecx, [ebp - 0x80]
push str.Error_code___d__socket___d_n
push ecx
call fcn.0054ea2a
add esp, 0x10
cmp esi, 0x2733
je 0x4eb5c1
mov edx, dword [0x63f3fc]
push 1
push edx
mov ecx, ebx
call fcn.004e9db0
lea eax, [ebp - 0x80]
mov ecx, ebx
push eax
call fcn.004e9e80
mov eax, esi
sub eax, 0x2733
neg eax
sbb eax, eax
and al, 0xfd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x4eb4b1
test ecx, ecx
jne 0x4eb4b1
mov edx, dword [ebx + 0x80]
cmp dword [edx + 0x24], 2
jne 0x4eb60b
mov al, byte [ebp - 0x21]
test al, al
je 0x4eb4b1
mov eax, dword [0x63f3f8]
push 1
push eax
mov ecx, ebx
call fcn.004e9db0
mov eax, 0xfffffffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc