Function at 0x411340
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x4b9430]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x84]
mov ecx, dword [edi + 0xdc]
push eax
push ecx
push str.Accepted_connection_from__s_on_socket__d
push 2
call fcn.004090c0
add esp, 0x10
lea ecx, [ecx]
mov ecx, edi
call fcn.0040f8f0
mov esi, dword [edi + 0x148]
test esi, esi
je 0x4113b7
cmp dword [edi + 0x14c], 0
je 0x4113a4
push esi
call dword [sym.imp.zlib1.dll_inflateEnd]
add esp, 4
push esi
call fcn.0045d483
add esp, 4
mov dword [edi + 0x148], 0
mov edx, dword [edi + 0xf4]
push edx
push str.finish_read:_url___s
push 2
call fcn.004090c0
mov ebx, dword [edi + 0xa8]
sub ebx, dword [edi + 0xa0]
mov eax, dword [edi + 0xd8]
add esp, 0xc
shr ebx, 1
test eax, 0x8000
je 0x41141b
test al, 0x40
je 0x41141b
mov ecx, dword [edi + 0x1a0]
or ecx, dword [edi + 0x1a4]
je 0x41141b
mov edx, dword [edi + 0x84]
push edx
or eax, 0x40000
push str.Tainting_client_socket__d_due_to_unread_data.
push 2
mov dword [edi + 0xd8], eax
call fcn.004090c0
add esp, 0xc
mov eax, dword [edi + 0xd8]
test eax, 0x1000
je 0x411738
mov ecx, dword [edi]
test byte [ecx + 8], 0x80
je 0x411460
test eax, 0x40000
jne 0x411460
cmp dword [edi + 0x84], 0xffffffff
je 0x411460
test eax, 0x8000
je 0x411460
test eax, 0x2000
jne 0x411456
test al, 2
je 0x411460
mov dword [esp + 0xc], 1
jmp 0x411468
mov dword [esp + 0xc], 0
test al, 0x40
jne 0x4115a7
mov esi, dword [edi + 0x90]
cmp esi, 0xffffffff
je 0x4115a7
test eax, 0x20000
jne 0x41148f
mov ecx, dword [ecx + 0x7c]
mov dword [edi + 0xb0], ecx
test eax, 0x40000
jne 0x4114ab
call fcn.0040d680
test eax, eax
je 0x4114ab
cmp ebx, dword [edi + 0xb0]
jb 0x4115a7
mov edx, dword [edi + 0xb0]
mov esi, dword [edi + 0x90]
mov ebx, dword [edi + 0xd8]
push edx
push ecx
call fcn.0040d680
mov ecx, dword [edi + 0xb8]
mov edx, dword [edi + 0x90]
add esp, 4
push eax
mov eax, ebx
shr eax, 0x12
and eax, 1
push eax
shr ebx, 0xc
and ebx, 1
push ebx
push ecx
push edx
push str.Closing_server_socket__d_connected_to__s._Keep_alive__u._Tainted:__u._Socket_alive__u._Timeout:__u.
push 2
call fcn.004090c0
mov eax, dword [edi + 0x90]
add esp, 0x20
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [edi + 0xb8]
xor esi, esi
mov dword [edi + 0x94], esi
mov dword [edi + 0x90], 0xffffffff
cmp eax, esi
je 0x41152d
push eax
call fcn.0045d483
add esp, 4
mov dword [edi + 0xb8], esi
mov eax, dword [edi + 0xc4]
mov dword [edi + 0xbc], esi
mov dword [edi + 0x98], esi
mov dword [edi + 0x9c], esi
mov dword [edi + 0xa0], esi
mov dword [edi + 0xa4], esi
mov dword [edi + 0xa8], esi
mov dword [edi + 0xac], esi
mov dword [edi + 0xb0], esi
mov dword [edi + 0xb4], esi
mov dword [edi + 0xc0], esi
cmp eax, esi
je 0x411582
push eax
call fcn.0045d483
add esp, 4
mov dword [edi + 0xc4], esi
mov eax, dword [edi + 0xcc]
mov dword [edi + 0xc8], esi
cmp eax, esi
je 0x4115a1
push eax
call fcn.0045d483
add esp, 4
mov dword [edi + 0xcc], esi
mov dword [edi + 0xd0], esi
cmp dword [esp + 0xc], 0
je 0x4116eb
test dword [edi + 0xd8], 0x800000
je 0x4115f5
mov esi, dword [edi + 0x84]
call fcn.0040d680
test eax, eax
je 0x4115f5
mov ecx, dword [edi + 0x84]
mov edx, dword [edi + 0x88]
push ecx
inc edx
push edx
push str.Client_request__d_has_been_pipelined_on_socket__d_and_the_socket_is_still_alive.
push 2
call fcn.004090c0
add esp, 0x10
call fcn.00411160
jmp 0x411380
mov esi, 0x8000
test dword [edi + 0xd8], esi
je 0x411738
mov eax, dword [edi + 0x90]
cmp eax, 0xffffffff
je 0x411631
mov ecx, dword [edi + 0xb8]
mov edx, dword [edi + 0x84]
push ecx
push eax
push edx
push str.Waiting_for_the_next_client_request_on_socket__d._Keeping_the_server_socket__d_to__s_open.
push 2
call fcn.004090c0
add esp, 0x14
jmp 0x411647
mov eax, dword [edi + 0x84]
push eax
push str.Waiting_for_the_next_client_request_on_socket__d._No_server_socket_to_keep_open.
push 2
call fcn.004090c0
add esp, 0xc
test dword [edi + 0xd8], esi
je 0x411738
mov ecx, dword [edi]
mov edx, dword [ecx + 0x78]
mov esi, dword [edi + 0x84]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], edx
push ecx
lea edx, [esi + 1]
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x411738
push 2
push eax
lea eax, [esp + 0x128]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jne 0x411738
mov esi, dword [edi + 0x84]
call fcn.0040d680
test eax, eax
je 0x411738
mov ecx, dword [edi + 0x84]
mov edx, dword [edi + 0x88]
push ecx
inc edx
push edx
push str.Client_request__u_arrived_in_time_on_socket__d.
push 2
call fcn.004090c0
add esp, 0x10
call fcn.00411160
jmp 0x411380
mov esi, dword [edi + 0x90]
cmp esi, 0xffffffff
je 0x411738
mov eax, dword [edi + 0xb0]
mov ebx, dword [edi + 0xd8]
push 0
push eax
call fcn.0040d680
mov edx, dword [edi + 0xb8]
push eax
mov eax, dword [edi + 0x90]
mov ecx, ebx
shr ecx, 0x12
and ecx, 1
push ecx
shr ebx, 0xc
and ebx, 1
push ebx
push edx
push eax
push str.Closing_server_socket__d_connected_to__s._Keep_alive:__u._Tainted:__u._Socket_alive:__u._Timeout:__u._Configuration_file_change_detected:__u
push 2
call fcn.004090c0
add esp, 0x24
mov eax, dword [edi + 0x90]
lea esi, [edi + 0x90]
cmp eax, 0xffffffff
je 0x411750
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.0040c300
mov esi, dword [edi + 0x84]
cmp esi, 0xffffffff
je 0x4117ae
mov ecx, dword [edi + 0x88]
push ecx
push 0
push 0
call fcn.0040cde0
mov esi, dword [edi + 0x84]
add esp, 4
push eax
push ecx
call fcn.0040d680
mov edx, dword [edi + 0xd8]
add esp, 4
push eax
mov eax, dword [edi + 0x84]
shr edx, 0xf
and edx, 1
push edx
push eax
push str.Closing_client_socket__d._Keep_alive:__u._Socket_alive:__u._Data_available:__u._Configuration_file_change_detected:__u._Requests_received:__u.
push 2
call fcn.004090c0
add esp, 0x20
mov esi, edi
call fcn.004120d0
and dword [edi + 0xd8], 0xfffffffe
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret