Function at 0x485190
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.0048a060
test eax, eax
mov dword [esp + 0x1c], eax
je 0x485330
mov dword [esp + 0x1c], 1
mov byte [esp + 0x28], 1
test byte [ebx + 0xdd], 0x10
jne 0x485274
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x4852a0
mov ebx, dword [ebx + 0x78]
test ebx, ebx
je 0x485248
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 0x485300
lea ecx, [ebp + 1]
lea edi, [ebp + ebx]
jmp 0x485244
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 0x485300
cmp edi, ecx
jne 0x485220
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
jne 0x485a69
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.0048a0a0
test eax, eax
jne 0x4851dd
mov dword [esp + 4], str.Failed_to_set_noninheritable_mode_on_new_client_socket._n
mov dword [esp], ebx
call fcn.00488450
mov esi, dword [ebx + 0x64]
test esi, esi
jne 0x4851e8
nop
mov eax, dword [ebx + 0xd0]
cmp dword [ebx + 0xcc], eax
mov edi, ebx
jne 0x485362
mov dword [esp + 4], str.Server_reached_connection_limit._Closing_inbound_connection._n
mov dword [esp], ebx
call fcn.00488450
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
je 0x48525e
mov eax, dword [0x5769c0]
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 [0x5769c4]
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.00482870
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp], eax
call fcn.00489370
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.00488450
mov byte [esp + 0x28], 0
jmp 0x4851d0
mov edi, eax
mov eax, dword [edi + 0x60]
test eax, eax
jne 0x485360
mov esi, dword [edi + 0xd8]
test esi, esi
jne 0x485543
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x48539e
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 0x4855e4
mov dword [esp + 4], 0xe0
mov dword [esp], 1
call sub.msvcrt.dll_calloc
test eax, eax
mov edi, eax
je 0x485584
mov eax, dword [ebx + 0x6c]
mov dword [esp], eax
call fcn.00488890
test eax, eax
mov dword [edi + 0x20], eax
je 0x48560e
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 0x4856fa
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.00488c10
test byte [ebx + 0xdc], 2
mov dword [edi + 0x88], eax
je 0x485799
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x485466
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 0x4859f7
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ebp, [ebx + 0x9c]
mov eax, ebx
call fcn.00482720
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
test byte [ebx + 0xdc], 4
jne 0x4854d4
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
test edx, edx
je 0x485910
mov dword [edx + 8], eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
test eax, eax
je 0x485908
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 0x4858d3
mov dword [edx], eax
mov eax, dword [edi]
mov edx, dword [edi + 4]
test eax, eax
je 0x4858cb
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.00488930
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 0x48578a
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
jmp 0x48526a
mov dword [esp + 4], 1
mov dword [esp], 0x18
call sub.msvcrt.dll_calloc
test eax, eax
mov esi, eax
je 0x4852b4
cmp dword [esp + 0x20], 0x10
je 0x485675
cmp dword [esp + 0x20], 0x1c
je 0x4858a1
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x485377
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.00488450
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
jne 0x485a8f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, ebx
call fcn.00482720
call edi
mov edi, dword [esp + 0x1c]
mov dword [eax], edi
jmp 0x48526a
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
jne 0x485a1d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, ebx
call fcn.00482720
jmp 0x48526a
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.00488450
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
jne 0x485a43
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, ebx
call fcn.00482720
mov dword [esp], edi
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x1c]
call eax
mov dword [eax], 0xc
jmp 0x48526a
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], 0x482440
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0049c560
test eax, eax
je 0x4858db
mov eax, dword [eax]
cmp esi, eax
je 0x4856d0
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 0x485775
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 0x485377
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.00488450
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
jne 0x4859d1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, ebx
call fcn.00482720
mov eax, dword [edi + 0x20]
mov dword [esp], eax
call fcn.00488930
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 0x48526a
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x4852b4
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
xor esi, esi
jmp 0x48526a
lea esi, [ebx + 0x9c]
mov dword [esp], edi
call fcn.0047eea0
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 0x485918
add eax, 1
test byte [ebx + 0xdc], 4
mov dword [ebx + 0xcc], eax
jne 0x4857f5
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
mov dword [edi + 0xc], 0
test ecx, ecx
mov dword [edi + 8], eax
je 0x48597a
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 0x48593e
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 0x485840
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 0x485946
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 0x485897
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x549fb3
mov eax, dword [ebx + 0xc0]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
test eax, eax
jle 0x485982
mov esi, 1
jmp 0x48526a
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 0x485685
mov dword [ebx + 0xc], edx
jmp 0x4854f3
mov dword [ebx + 8], eax
jmp 0x4854e8
mov dword [esp], edi
mov dword [esp + 4], str.Failed_to_add_IP_connection_count_node_n
call fcn.00488450
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 0x4852b4
mov dword [ebx + 0x24], edx
jmp 0x4854c6
mov dword [ebx + 0x20], eax
jmp 0x4854bb
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.00488450
jmp 0x485444
mov dword [ebx + 0xc], edi
jmp 0x48580f
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x483c60
mov eax, dword [ebx + 0x74]
mov dword [esp + 4], eax
lea eax, [edi + 0x50]
mov dword [esp], eax
call fcn.00489320
test eax, eax
je 0x4859a8
test byte [ebx + 0xdc], 4
jne 0x485897
jmp 0x48585c
mov dword [ebx + 0x24], edi
jmp 0x4857f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x485897
mov dword [esp + 4], str.Failed_to_signal_new_connection_via_inter_thread_communication_channel.
mov dword [esp], ebx
call fcn.00488450
jmp 0x485897
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.00488450
jmp 0x485444
mov eax, dword [0x5769c0]
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 [0x5769c4]
mov eax, dword [0x5769c0]
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 [0x5769c4]
mov eax, dword [0x5769c0]
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 [0x5769c4]
mov eax, dword [0x5769c0]
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 [0x5769c4]
mov eax, dword [0x5769c0]
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 [0x5769c4]
mov eax, dword [0x5769c0]
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 [0x5769c4]
lea esi, [esi]
lea edi, [edi]