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

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, eax
sub esp, 0x5c
mov byte [eax + 0xc8], 0
mov eax, dword [eax + 0xbc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
cmp eax, 0xffffffff
jne 0x486540
mov eax, dword [esi + 0xb4]
cmp eax, 0xffffffff
je 0x4862b1
movzx edx, byte [esi + 0xc5]
test dl, dl
je 0x486395
test byte [esi + 0xdc], 4
jne 0x486381
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x486381
mov dword [esp + 0x28], esi
lea esi, [esi]
mov ebp, dword [ebx + 0x98]
mov edi, dword [ebx + 4]
cmp ebp, 0xffffffff
je 0x486373
mov eax, dword [esp + 0x70]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test esi, esi
jne 0x486510
mov ecx, dword [ebx + 0xa8]
mov edx, dword [ebx + 0xa4]
test ecx, ecx
je 0x4864a3
cmp ecx, 1
je 0x486590
mov dword [esp], ebx
call fcn.00481d50
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0xc8], 0
jne 0x486373
test byte [eax + 0xdc], 4
jne 0x486373
cmp dword [ebx + 0xa8], 2
jne 0x486373
mov byte [eax + 0xc8], 1
test edi, edi
mov ebx, edi
jne 0x4862d0
mov esi, dword [esp + 0x28]
mov eax, esi
call fcn.00485bf0
add esp, 0x5c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x4862b1
lea ebx, [esp + 0x34]
mov dword [esp + 0x30], 0x1c
xor edx, edx
xor eax, eax
mov dword [ebx + eax], edx
add eax, 4
cmp eax, 0x1c
jb 0x4863c0
mov edx, dword [esi + 0xb4]
cmp edx, 0xffffffff
je 0x4862b1
movzx eax, byte [esi + 0xc5]
test al, al
jne 0x4862b1
lea eax, [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], edx
mov dword [esp + 8], eax
call dword [sym.imp.WS2_32.dll_accept]
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
je 0x486414
mov ebp, dword [esp + 0x30]
test ebp, ebp
jg 0x4865eb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea eax, [eax - 0x2726]
and eax, 0xffffffdf
je 0x4862b1
cmp ebx, 0x2733
je 0x486631
mov dword [esp], ebx
call fcn.0048be10
mov dword [esp + 4], str.Error_accepting_connection:__s_n
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.0048aef0
cmp edi, 0xffffffff
je 0x48646c
mov dword [esp], edi
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
jne 0x48664e
cmp ebx, 0x2728
je 0x486480
cmp ebx, 0x2747
jne 0x4862b1
mov ebx, dword [esi + 0xcc]
test ebx, ebx
jne 0x4866ad
mov dword [esp + 4], str.Hit_process_or_system_resource_limit_at_FIRST_connection._This_is_really_bad_as_there_is_no_sane_way_to_proceed._Will_try_busy_waiting_for_system_resources_to_become_magically_available._n
mov dword [esp], esi
call fcn.0048aef0
jmp 0x4862b1
test eax, eax
je 0x486346
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
call fcn.00480d80
mov dword [esp], ebx
call fcn.00481d50
cmp dword [ebx + 0xa8], 1
mov edx, dword [esp + 0x2c]
je 0x4865c0
test edx, edx
jne 0x48634e
cmp byte [ebx + 0x9c], 0
je 0x48634e
mov eax, dword [ebx + 0xa4]
cmp eax, 0xa
je 0x4865d0
and eax, 0xfffffffd
cmp eax, 0xc
jne 0x48634e
mov dword [esp], ebx
call fcn.00481160
jmp 0x486346
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.00480c20
mov dword [esp], ebx
mov ebx, edi
call fcn.00481d50
test edi, edi
jne 0x4862d0
jmp 0x48637d
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x486297
mov edi, dword [sym.imp.WS2_32.dll_recv]
lea ebx, [esp + 0x34]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], ebx
mov eax, dword [esi + 0xbc]
mov dword [esp], eax
call edi
sub esp, 0x10
test eax, eax
jg 0x486561
jmp 0x486297
mov eax, dword [esp + 0x24]
test eax, eax
je 0x486346
mov dword [esp], ebx
mov dword [esp + 0x24], edx
call fcn.00481160
mov dword [esp], ebx
call fcn.00481d50
mov edx, dword [esp + 0x24]
jmp 0x4864d0
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4864d0
jmp 0x48659c
mov dword [esp], ebx
call fcn.00481160
mov dword [esp], ebx
call fcn.00481d50
mov eax, dword [ebx + 0xa4]
jmp 0x4864f4
mov dword [esp], eax
call fcn.0048cb00
test eax, eax
mov ebp, eax
je 0x486686
mov ebp, 1
mov dword [esp], edi
call fcn.0048cb40
test eax, eax
je 0x486674
mov eax, dword [esp + 0x30]
mov dword [esp + 8], ebp
mov ecx, ebx
mov dword [esp + 4], 0
mov edx, edi
mov dword [esp], eax
mov eax, esi
call fcn.00485310
jmp 0x4862b1
cmp edi, 0xffffffff
je 0x4862b1
mov dword [esp], edi
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
je 0x4862b1
mov eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Close_socket_failed._n
mov dword [esp + 8], 0xb83
mov dword [esp + 4], str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_daemon.c
mov dword [esp], eax
call dword [0x6ab744]
mov dword [esp + 4], str.Failed_to_set_noninheritable_mode_on_incoming_connection_socket._n
mov dword [esp], esi
call fcn.0048aef0
jmp 0x48660e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp], eax
call fcn.0048be10
mov dword [esp + 4], str.Failed_to_set_nonblocking_mode_on_incoming_connection_socket:__s_n
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.0048aef0
jmp 0x486602
lea ebx, [esi + 0x9c]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
mov byte [esi + 0xc6], 1
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xcc]
sub esp, 4
mov dword [esp + 4], str.Hit_process_or_system_resource_limit_at__u_connections__temporarily_suspending_accept__._Consider_setting_a_lower_MHD_OPTION_CONNECTION_LIMIT._n
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.0048aef0
jmp 0x4862b1