Function at 0x482870
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
push edi
mov ebp, edx
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
mov eax, edi
test al, al
je 0x482944
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x482944
mov ebx, dword [ebx + 0x78]
test ebx, ebx
je 0x482908
mov eax, edx
xor edx, edx
div ebx
imul eax, edx, 0x114
add eax, esi
mov edi, dword [eax + 0xd0]
cmp dword [eax + 0xcc], edi
jb 0x482be0
lea ecx, [ebp + 1]
lea edi, [ebp + ebx]
jmp 0x482904
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 0x482be0
cmp edi, ecx
jne 0x4828e0
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
je 0x482b96
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 [ebx + 0xd0]
cmp dword [ebx + 0xcc], eax
je 0x482b70
mov esi, ebx
mov edx, dword [esp + 0x18]
jmp 0x482962
mov esi, eax
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x482960
mov edi, dword [esi + 0xd8]
mov dword [esp + 0x18], edx
test edi, edi
jne 0x482c10
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4829a2
mov edi, dword [esp + 0x1c]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 4], edi
mov ecx, dword [ebx + 0x34]
mov dword [esp], ecx
call eax
test eax, eax
je 0x482bb0
mov dword [esp + 4], 0xe0
mov dword [esp], 1
call sub.msvcrt.dll_calloc
test eax, eax
mov edi, eax
je 0x482dd0
mov eax, dword [ebx + 0x6c]
mov dword [esp], eax
call fcn.00488890
test eax, eax
mov dword [edi + 0x20], eax
je 0x482e30
mov eax, dword [ebx + 0xd4]
mov dword [edi + 0x8c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [edi + 0x4c], eax
je 0x482eac
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
movzx eax, byte [esp + 0x24]
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 0x482c51
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x482a6a
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 0x483089
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
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 0x482ad8
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
test edx, edx
je 0x482f63
mov dword [edx + 8], eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
test eax, eax
je 0x482f5b
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 0x482f53
mov dword [edx], eax
mov eax, dword [edi]
mov edx, dword [edi + 4]
test eax, eax
je 0x482f4b
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 0x482f3c
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
jmp 0x482ba2
mov dword [esp + 4], str.Failed_to_add_IP_connection_count_node_n
mov dword [esp], esi
call fcn.00488450
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
mov dword [esp], edi
call sub.msvcrt.dll_free
lea esi, [esi]
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
jne 0x483063
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 dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
mov esi, eax
jne 0x4830af
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, ebx
call fcn.00482720
jmp 0x482ba2
movzx edx, byte [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x54], 1
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], edx
add esp, 0x3c
mov edx, ebp
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00482870
mov dword [esp + 4], 1
mov dword [esp], 0x18
call sub.msvcrt.dll_calloc
test eax, eax
mov edi, eax
je 0x482b70
cmp dword [esp + 0x1c], 0x10
je 0x482e97
cmp dword [esp + 0x1c], 0x1c
je 0x482d2f
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x48297b
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 0x482f6b
add eax, 1
test byte [ebx + 0xdc], 4
mov dword [ebx + 0xcc], eax
jne 0x482cad
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
mov dword [edi + 0xc], 0
test ecx, ecx
mov dword [edi + 8], eax
je 0x483032
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 0x482fc5
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 0x482cf8
lea ecx, [edi + 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov ecx, dword [ebx + 0x44]
mov dword [esp], ecx
call eax
mov eax, dword [ebx + 0xdc]
and eax, 4
jne 0x482f91
mov edx, dword [ebx + 0x7c]
mov ecx, dword [ebx + 0x80]
mov dword [edi + 0x50], edx
mov dword [edi + 0x54], ecx
test eax, eax
jne 0x482d25
cmp byte [esp + 0x18], 0
jne 0x482fcd
mov esi, 1
jmp 0x482ba2
mov edx, dword [esp + 0x20]
mov dword [eax], 0x17
lea eax, [edx + 8]
mov edx, dword [edx + 8]
mov dword [edi + 4], edx
mov edx, dword [eax + 4]
mov dword [edi + 8], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], eax
lea eax, [esi + 0x84]
mov dword [esp + 0x28], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x68]
sub esp, 4
mov dword [esp + 8], 0x482440
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0049c560
test eax, eax
je 0x482b44
mov ecx, dword [eax]
cmp edi, ecx
je 0x482d9f
mov dword [esp], edi
mov dword [esp + 0x2c], ecx
call sub.msvcrt.dll_free
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x14]
cmp eax, dword [esi + 0xd8]
jae 0x482f27
add eax, 1
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x48297b
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov eax, dword [eax]
mov dword [esp + 0x18], 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 0x4830fb
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, ebx
call fcn.00482720
call edi
mov edi, dword [esp + 0x18]
mov dword [eax], edi
jmp 0x482ba2
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 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 0x4830d5
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, ebx
call fcn.00482720
mov dword [esp], edi
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x18]
call eax
mov dword [eax], 0xc
jmp 0x482ba2
mov dword [eax], 2
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
jmp 0x482d54
mov esi, dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x24], esi
call esi
mov eax, dword [eax]
mov dword [esp + 0x18], 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 0x483121
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
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 + 0x24]
call eax
mov edi, dword [esp + 0x18]
mov dword [eax], edi
jmp 0x482ba2
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x482b70
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
xor esi, esi
jmp 0x482ba2
mov dword [ebx + 0xc], edx
jmp 0x482af7
mov dword [ebx + 8], eax
jmp 0x482aec
mov dword [ebx + 0x24], edx
jmp 0x482aca
mov dword [ebx + 0x20], eax
jmp 0x482abf
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 0x482a48
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 0x48303a
mov eax, dword [ebx + 0xdc]
and eax, 4
jmp 0x482d16
mov dword [ebx + 0xc], edi
jmp 0x482cc7
cmp dword [ebx + 0xbc], 0xffffffff
je 0x482d25
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
jg 0x482d25
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x482d25
mov dword [esp + 4], str.Failed_to_signal_new_connection_via_inter_thread_communication_channel.
mov dword [esp], ebx
call fcn.00488450
jmp 0x482d25
mov dword [ebx + 0x24], edi
jmp 0x482caa
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 0x482a48
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 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], 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]
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 esi, esi
lea edi, [edi]