Function at 0x487c30
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], ebp
mov dword [esp + 0x20], eax
call fcn.0048cb00
test eax, eax
mov dword [esp + 0x1c], eax
je 0x487dd0
mov dword [esp + 0x1c], 1
mov byte [esp + 0x28], 1
test byte [ebx + 0xdd], 0x10
jne 0x487d14
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x487d40
mov ebx, dword [ebx + 0x78]
test ebx, ebx
je 0x487ce8
xor edx, edx
mov eax, ebp
div ebx
imul eax, edx, 0x114
add eax, esi
mov edi, dword [eax + 0xcc]
cmp dword [eax + 0xd0], edi
ja 0x487da0
lea ecx, [ebp + 1]
lea edi, [ebp + ebx]
jmp 0x487ce4
mov eax, ecx
xor edx, edx
add ecx, 1
div ebx
imul edx, edx, 0x114
lea eax, [esi + edx]
mov edx, dword [eax + 0xd0]
cmp dword [eax + 0xcc], edx
jb 0x487da0
cmp edi, ecx
jne 0x487cc0
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
jne 0x488509
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x17
add esp, 0x3c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
call fcn.0048cb40
test eax, eax
jne 0x487c7d
mov dword [esp + 4], str.Failed_to_set_noninheritable_mode_on_new_client_socket._n
mov dword [esp], ebx
call fcn.0048aef0
mov esi, dword [ebx + 0x64]
test esi, esi
jne 0x487c88
nop
mov eax, dword [ebx + 0xd0]
cmp dword [ebx + 0xcc], eax
mov edi, ebx
jne 0x487e02
mov dword [esp + 4], str.Server_reached_connection_limit._Closing_inbound_connection._n
mov dword [esp], ebx
call fcn.0048aef0
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
je 0x487cfe
mov eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Close_socket_failed._n
mov dword [esp + 8], 0x8d3
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 esi, dword [esp + 0x1c]
mov dword [esp + 0x54], 1
mov edx, ebp
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x50], esi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00485310
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_new_client_socket:__s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.0048aef0
mov byte [esp + 0x28], 0
jmp 0x487c70
mov edi, eax
mov eax, dword [edi + 0x60]
test eax, eax
jne 0x487e00
mov esi, dword [edi + 0xd8]
test esi, esi
jne 0x487fe3
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x487e3e
mov esi, dword [esp + 0x20]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 4], esi
mov edx, dword [ebx + 0x34]
mov dword [esp], edx
call eax
test eax, eax
je 0x488084
mov dword [esp + 4], 0xe0
mov dword [esp], 1
call sub.msvcrt.dll_calloc
test eax, eax
mov edi, eax
je 0x488024
mov eax, dword [ebx + 0x6c]
mov dword [esp], eax
call fcn.0048b330
test eax, eax
mov dword [edi + 0x20], eax
je 0x4880ae
mov eax, dword [ebx + 0xd4]
mov dword [edi + 0x8c], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [edi + 0x4c], eax
je 0x48819a
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
movzx eax, byte [esp + 0x28]
mov dword [edi + 0x84], esi
mov esi, 0x16
mov dword [edi + 0x98], ebp
mov dword [edi + 0x10], ebx
mov byte [edi + 0x9c], al
call fcn.0048b6b0
test byte [ebx + 0xdc], 2
mov dword [edi + 0x88], eax
je 0x488239
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x487f06
lea edx, [edi + 0x28]
mov dword [esp + 0xc], 1
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov edx, dword [ebx + 0x44]
mov dword [esp], edx
call eax
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
jne 0x488497
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ebp, [ebx + 0x9c]
mov eax, ebx
call fcn.004851c0
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
test byte [ebx + 0xdc], 4
jne 0x487f74
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
test edx, edx
je 0x4883b0
mov dword [edx + 8], eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
test eax, eax
je 0x4883a8
mov dword [eax + 0xc], edx
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov edx, dword [edi + 4]
mov eax, dword [edi]
test edx, edx
je 0x488373
mov dword [edx], eax
mov eax, dword [edi]
mov edx, dword [edi + 4]
test eax, eax
je 0x48836b
mov dword [eax + 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x20]
sub esp, 4
mov dword [esp], eax
call fcn.0048b3d0
mov eax, dword [edi + 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_free
test esi, esi
jne 0x48822a
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
jmp 0x487d0a
mov dword [esp + 4], 1
mov dword [esp], 0x18
call sub.msvcrt.dll_calloc
test eax, eax
mov esi, eax
je 0x487d54
cmp dword [esp + 0x20], 0x10
je 0x488115
cmp dword [esp + 0x20], 0x1c
je 0x488341
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x487e17
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
call edi
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], str.Error_allocating_memory:__s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.0048aef0
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
jne 0x48852f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, ebx
call fcn.004851c0
call edi
mov edi, dword [esp + 0x1c]
mov dword [eax], edi
jmp 0x487d0a
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
jne 0x4884bd
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, ebx
call fcn.004851c0
jmp 0x487d0a
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x1c], eax
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], str.Error_allocating_memory:__s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.0048aef0
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
jne 0x4884e3
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, ebx
call fcn.004851c0
mov dword [esp], edi
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x1c]
call eax
mov dword [eax], 0xc
jmp 0x487d0a
mov dword [eax], 2
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
lea eax, [edi + 0x84]
mov dword [esp + 0x1c], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x68]
sub esp, 4
mov dword [esp + 8], 0x484ee0
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.004a01b0
test eax, eax
je 0x48837b
mov eax, dword [eax]
cmp esi, eax
je 0x488170
mov dword [esp], esi
mov dword [esp + 0x2c], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x14]
cmp edx, dword [edi + 0xd8]
jae 0x488215
add edx, 1
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x487e17
mov esi, dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x28], esi
call esi
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
call esi
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], str.Error_allocating_memory:__s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.0048aef0
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
jne 0x488471
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, ebx
call fcn.004851c0
mov eax, dword [edi + 0x20]
mov dword [esp], eax
call fcn.0048b3d0
mov dword [esp], edi
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x28]
call eax
mov edi, dword [esp + 0x1c]
mov dword [eax], edi
jmp 0x487d0a
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x487d54
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
xor esi, esi
jmp 0x487d0a
lea esi, [ebx + 0x9c]
mov dword [esp], edi
call fcn.00481940
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0xcc]
sub esp, 4
cmp eax, dword [ebx + 0xd0]
jae 0x4883b8
add eax, 1
test byte [ebx + 0xdc], 4
mov dword [ebx + 0xcc], eax
jne 0x488295
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
mov dword [edi + 0xc], 0
test ecx, ecx
mov dword [edi + 8], eax
je 0x48841a
mov dword [eax + 0xc], edi
mov dword [ebx + 0x20], edi
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov dword [edi + 4], 0
test edx, edx
mov dword [edi], eax
je 0x4883de
mov dword [eax + 4], edi
mov dword [ebx + 8], edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x40]
sub esp, 4
test eax, eax
je 0x4882e0
lea edx, [edi + 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov edx, dword [ebx + 0x44]
mov dword [esp], edx
call eax
test byte [ebx + 0xdc], 4
jne 0x4883e6
mov eax, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x80]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], edx
cmp dword [ebx + 0xbc], 0xffffffff
je 0x488337
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x648db3
mov eax, dword [ebx + 0xc0]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
test eax, eax
jle 0x488422
mov esi, 1
jmp 0x487d0a
mov ecx, dword [esp + 0x24]
mov dword [eax], 0x17
lea eax, [ecx + 8]
mov ecx, dword [ecx + 8]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
jmp 0x488125
mov dword [ebx + 0xc], edx
jmp 0x487f93
mov dword [ebx + 8], eax
jmp 0x487f88
mov dword [esp], edi
mov dword [esp + 4], str.Failed_to_add_IP_connection_count_node_n
call fcn.0048aef0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
mov dword [esp], esi
call sub.msvcrt.dll_free
jmp 0x487d54
mov dword [ebx + 0x24], edx
jmp 0x487f66
mov dword [ebx + 0x20], eax
jmp 0x487f5b
mov dword [esp], esi
mov esi, 0x17
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
mov dword [esp + 4], str.Server_reached_connection_limit._Closing_inbound_connection._n
mov dword [esp], ebx
call fcn.0048aef0
jmp 0x487ee4
mov dword [ebx + 0xc], edi
jmp 0x4882af
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x486700
mov eax, dword [ebx + 0x74]
mov dword [esp + 4], eax
lea eax, [edi + 0x50]
mov dword [esp], eax
call fcn.0048bdc0
test eax, eax
je 0x488448
test byte [ebx + 0xdc], 4
jne 0x488337
jmp 0x4882fc
mov dword [ebx + 0x24], edi
jmp 0x488292
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x488337
mov dword [esp + 4], str.Failed_to_signal_new_connection_via_inter_thread_communication_channel.
mov dword [esp], ebx
call fcn.0048aef0
jmp 0x488337
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
mov dword [esp], esi
call sub.msvcrt.dll_strerror
mov dword [esp + 4], str.Failed_to_create_a_thread:__s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.0048aef0
jmp 0x487ee4
mov eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Close_socket_failed._n
mov dword [esp + 8], 0x91b
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 eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Close_socket_failed._n
mov dword [esp + 8], 0x9db
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 eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Close_socket_failed._n
mov dword [esp + 8], 0x8e6
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 eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Close_socket_failed._n
mov dword [esp + 8], 0x907
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 eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Close_socket_failed._n
mov dword [esp + 8], 0x897
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 eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Close_socket_failed._n
mov dword [esp + 8], 0x8f8
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]
lea esi, [esi]
lea edi, [edi]