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

Disassembly:
push 0xffffffffffffffff
push 0x406076
mov eax, dword fs:[0]
push eax
mov eax, 0x2108
call fcn.004059b0
mov eax, dword [0x40a018]
xor eax, esp
mov dword [esp + 0x2100], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40a018]
xor eax, esp
push eax
lea eax, [esp + 0x211c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x212c]
mov edi, ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], edi
mov esi, edx
mov dword [esp + 0x30], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x54]
xor ebx, ebx
push ecx
mov dword [esp + 0x2128], ebx
call fcn.004024c0
lea edx, [esp + 0x9c]
push edx
mov byte [esp + 0x2128], 1
call fcn.00401ef0
push 0x2000
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2128], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::reserve_unsigned_int_]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x58]
push ecx
push edi
lea ecx, [esp + 0x44]
mov edx, esi
call fcn.004033e0
mov esi, eax
cmp esi, ebx
je 0x40394c
lea edx, [esp + 0x9c]
push edx
mov byte [esp + 0x2128], 1
call fcn.00401f60
lea eax, [esp + 0x54]
mov byte [esp + 0x2124], bl
push eax
call fcn.00402530
lea ecx, [esp + 0x38]
mov dword [esp + 0x2124], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
jmp 0x403e91
mov edi, str.chunked
mov ecx, str.Transfer_Encoding
lea ebx, [esp + 0x54]
call fcn.00404490
xor ebp, ebp
test eax, eax
jne 0x403af6
lea edi, [esp + 0x24]
lea esi, [esp + 0x54]
xor ebx, ebx
call fcn.00404560
test eax, eax
jne 0x403a18
or eax, 0xffffffff
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov esi, eax
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4039c9
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x4039a8
lea eax, [esp + 0x3c]
push edi
push 0
push ecx
push eax
call fcn.00404640
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x40390a
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x24]
xor ebp, ebp
cmp ebp, dword [esp + 0x28]
ja 0x4039d5
jb 0x403a46
cmp ebx, esi
jb 0x403a46
lea ecx, [esp + 0x9c]
push ecx
mov byte [esp + 0x2128], 1
call fcn.00401f60
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x2128], 0
call fcn.00402530
lea ecx, [esp + 0x38]
mov dword [esp + 0x2124], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jmp 0x403e91
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, esi
and ecx, eax
cmp ecx, 0xffffffff
je 0x40398d
mov edi, dword [esp + 0x30]
mov dword [edi + 0x418], esi
mov dword [edi + 0x41c], eax
jmp 0x403991
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
push 0
push 0x2000
lea ecx, [esp + 0x11c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x403aa3
cmp eax, 1
jl 0x403aa3
cdq
push edi
push edx
push eax
lea ecx, [esp + 0x120]
add ebx, eax
push ecx
adc ebp, edx
call fcn.00404640
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x403acf
cmp ebp, dword [esp + 0x28]
jb 0x403a42
ja 0x4039d5
mov esi, dword [esp + 0x24]
cmp ebx, esi
jb 0x403a46
jmp 0x4039d5
and esi, dword [esp + 0x28]
cmp esi, 0xffffffff
je 0x4039d5
lea edx, [esp + 0x9c]
push edx
mov byte [esp + 0x2128], 1
call fcn.00401f60
lea eax, [esp + 0x54]
push eax
jmp 0x403e6a
lea ecx, [esp + 0x9c]
push ecx
mov byte [esp + 0x2128], 1
call fcn.00401f60
lea edx, [esp + 0x54]
mov byte [esp + 0x2124], 0
push edx
jmp 0x40392b
mov ebx, dword [esp + 0x4c]
test ebx, ebx
mov dword [esp + 0x18], ebp
jle 0x403b15
cmp dword [esp + 0x50], 0x10
mov ebp, dword [esp + 0x3c]
jae 0x403b11
lea ebp, [esp + 0x3c]
mov dword [esp + 0x18], ebp
mov esi, ebx
lea ecx, [esp + 0x34]
lea edx, [esp + 0x1c]
mov edi, ebp
mov dword [esp + 0x1c], 0
call fcn.004037e0
mov edi, dword [esp + 0x34]
cmp edi, ebx
jl 0x403b8c
lea ebp, [esp + 0x114]
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
xor esi, esi
push esi
push 0x2000
lea eax, [esp + 0x11c]
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x403b65
mov esi, eax
cmp esi, 1
mov ebx, esi
jl 0x403e50
lea ecx, [esp + 0x34]
lea edx, [esp + 0x1c]
lea edi, [esp + 0x114]
call fcn.004037e0
mov edi, dword [esp + 0x34]
cmp edi, esi
jge 0x403b41
mov al, byte [edi + ebp]
cmp al, 0x3b
je 0x403b9f
cmp al, 0xd
je 0x403b9f
cmp al, 0xa
jne 0x403d34
mov esi, dword [sym.imp.WS2_32.dll_recv]
cmp edi, ebx
jge 0x403bbd
lea esp, [esp]
cmp byte [edi + ebp], 0xa
je 0x403bbd
add edi, 1
cmp edi, ebx
jl 0x403bb0
mov eax, edi
add edi, 1
cmp eax, ebx
jl 0x403bf8
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
xor ebx, ebx
push ebx
lea ebp, [esp + 0x118]
push 0x2000
mov ecx, ebp
push ecx
push eax
xor edi, edi
mov dword [esp + 0x28], ebp
call esi
test eax, eax
jle 0x403bee
mov ebx, eax
cmp ebx, 1
jge 0x403ba5
jmp 0x403ab0
cmp dword [esp + 0x1c], 0
je 0x403d53
mov eax, dword [esp + 0x1c]
mov ebp, ebx
sub ebp, edi
cmp ebp, eax
jle 0x403c11
mov ebp, eax
test ebp, ebp
jle 0x403c3f
mov ecx, dword [esp + 0x30]
push ecx
mov eax, ebp
cdq
push edx
mov edx, dword [esp + 0x20]
push eax
lea eax, [edi + edx]
push eax
call fcn.00404640
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x403de6
mov eax, dword [esp + 0x1c]
add edi, ebp
cmp ebp, eax
jge 0x403ccd
lea ecx, [esp + 0x114]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
xor esi, esi
push esi
push 0x2000
lea edx, [esp + 0x11c]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x403c76
mov esi, eax
cmp esi, 1
mov ebx, esi
jl 0x403ab0
mov edi, dword [esp + 0x1c]
sub edi, ebp
cmp esi, edi
jge 0x403c8d
mov edi, esi
mov ecx, dword [esp + 0x30]
mov eax, edi
cdq
add dword [ecx + 0x410], eax
push 0
adc dword [ecx + 0x414], edx
mov ecx, dword [ecx + 0x420]
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_0H]
test eax, eax
je 0x403e0d
add ebp, edi
cmp ebp, dword [esp + 0x1c]
jl 0x403c52
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.WS2_32.dll_recv]
cmp edi, ebx
jge 0x403ced
jmp 0x403ce0
cmp byte [edi + esi], 0xa
je 0x403ced
add edi, 1
cmp edi, ebx
jl 0x403ce0
mov edx, edi
add edi, 1
cmp edx, ebx
mov dword [esp + 0x34], edi
jl 0x403d25
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
xor ebx, ebx
push ebx
lea esi, [esp + 0x118]
push 0x2000
mov eax, esi
push eax
push edx
call ebp
test eax, eax
jle 0x403d1c
mov ebx, eax
cmp ebx, 1
jl 0x403d34
xor edi, edi
jmp 0x403cd7
sub ebx, edi
add esi, edi
mov dword [esp + 0x18], esi
mov ebp, esi
jmp 0x403b15
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x2128], 1
call fcn.00401f60
lea ecx, [esp + 0x54]
push ecx
jmp 0x403e6a
mov ebp, dword [esp + 0x18]
mov esi, 0xa
cmp edi, ebx
jge 0x403d98
mov al, byte [edi + ebp]
cmp al, 0xd
jne 0x403d6f
shl esi, 8
or esi, 0xd
jmp 0x403d89
cmp al, 0xa
jne 0x403d87
cmp esi, 0xa0d
je 0x403d92
cmp esi, 0xa
je 0x403d92
mov esi, 0xa
jmp 0x403d89
xor esi, esi
add edi, 1
cmp edi, ebx
jl 0x403d60
jmp 0x403d98
shl esi, 8
or esi, 0xa
cmp esi, 0xa0d0a
je 0x4039d5
cmp esi, 0xa0a
je 0x4039d5
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
xor ebx, ebx
push ebx
lea ebp, [esp + 0x118]
push 0x2000
mov edx, ebp
push edx
push ecx
xor edi, edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x403dd8
mov ebx, eax
cmp ebx, 1
jge 0x403d5c
jmp 0x403ab0
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x2128], 1
call fcn.00401f60
lea ecx, [esp + 0x54]
mov byte [esp + 0x2124], 0
push ecx
jmp 0x40392b
lea ecx, [esp + 0x9c]
push ecx
mov byte [esp + 0x2128], 1
call fcn.00401f60
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x2128], 0
call fcn.00402530
lea ecx, [esp + 0x38]
mov dword [esp + 0x2124], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 0xfffffc1a
jmp 0x403e91
lea ecx, [esp + 0x9c]
push ecx
mov byte [esp + 0x2128], 1
call fcn.00401f60
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x2128], 0
call fcn.00402530
lea ecx, [esp + 0x38]
mov dword [esp + 0x2124], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 0xfffffc1e
mov ecx, dword [esp + 0x211c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2100]
xor ecx, esp
call fcn.00404f8a
add esp, 0x2114
ret 4