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

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
cmp dword [esi + 0x64], 0
je 0x10001fa7
nop
mov edi, dword [esi + 0x78]
lea ebp, [esi + 0x64]
xor ecx, ecx
cmp ecx, edi
jae 0x10002014
xor edx, edx
lea eax, [ecx + ebx]
div edi
imul esi, edx, 0x118
add esi, dword [ebp]
mov eax, dword [esi + 0xc8]
cmp eax, dword [esi + 0xcc]
jb 0x10001fa1
inc ecx
jmp 0x10001f78
cmp dword [esi + 0x64], 0
jne 0x10001f70
mov eax, dword [esi + 0xc8]
cmp eax, dword [esi + 0xcc]
je 0x10002494
mov ebp, dword [esp + 0x1c]
mov ecx, esi
mov edi, dword [esp + 0x18]
mov edx, edi
push ebp
call fcn.10001470
add esp, 4
test eax, eax
je 0x10002494
mov eax, dword [esi + 0x30]
test eax, eax
je 0x10002056
push ebp
push edi
push dword [esi + 0x34]
call eax
add esp, 0xc
test eax, eax
jne 0x10002056
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x10002041
push 0x1013ed6c
push 0x99a
push 0x1013edc0
push dword [0x10149f20]
call dword [0x10149f24]
add esp, 0x10
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x100024cb
push 0x1013eb6c
push 0x94b
push 0x1013ebb8
push dword [0x10149f20]
call dword [0x10149f24]
add esp, 0x10
push ebp
mov edx, edi
mov ecx, esi
call fcn.10001580
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0xf8
push 1
call fcn.100adf4a
mov edi, eax
add esp, 8
test edi, edi
jne 0x100020d7
call fcn.100adf37
mov edi, dword [eax]
call fcn.100adf37
push dword [eax]
call fcn.100b82eb
add esp, 4
push eax
push 0x1013ee14
push esi
call fcn.100085c0
add esp, 0xc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x100020b9
push 0x1013ee34
push 0x9ac
push 0x1013ee80
push dword [0x10149f20]
call dword [0x10149f24]
add esp, 0x10
mov edx, dword [esp + 0x18]
mov ecx, esi
push ebp
call fcn.10001580
add esp, 4
call fcn.100adf37
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0x6c]
call fcn.10008450
mov dword [edi + 0x20], eax
test eax, eax
jne 0x10002158
call fcn.100adf37
push dword [eax]
call fcn.100b82eb
add esp, 4
push eax
push 0x1013eed4
push esi
call fcn.100085c0
add esp, 0xc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1000212d
push 0x1013eef4
push 0x9bb
push 0x1013ef40
push dword [0x10149f20]
call dword [0x10149f24]
add esp, 0x10
mov edx, dword [esp + 0x18]
mov ecx, esi
push ebp
call fcn.10001580
add esp, 4
push edi
call fcn.100a9867
add esp, 4
call fcn.100adf37
mov dword [eax], 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esi + 0xd0]
mov dword [edi + 0x90], eax
mov eax, dword [esi + 0xd4]
push ebp
mov dword [edi + 0x94], eax
call fcn.100a986c
mov ecx, eax
add esp, 4
mov dword [edi + 0x4c], ecx
test ecx, ecx
jne 0x1000220b
call fcn.100adf37
mov eax, dword [eax]
mov dword [esp + 0x10], eax
call fcn.100adf37
push dword [eax]
call fcn.100b82eb
add esp, 4
push eax
push str.Error_allocating_memory:__s_n
push esi
call fcn.100085c0
add esp, 0xc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x100021d8
push 0x1013efb4
push 0x9cf
push 0x1013f000
push dword [0x10149f20]
call dword [0x10149f24]
add esp, 0x10
mov edx, dword [esp + 0x18]
mov ecx, esi
push ebp
call fcn.10001580
mov ecx, dword [edi + 0x20]
add esp, 4
call fcn.100084e0
push edi
call fcn.100a9867
add esp, 4
call fcn.100adf37
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
push ebp
push eax
push ecx
call fcn.100a5270
mov al, byte [esp + 0x30]
add esp, 0xc
mov dword [edi + 0x84], ebp
mov dword [edi + 0xa0], ebx
mov byte [edi + 0xa4], al
mov dword [edi + 0x10], esi
call fcn.100083e0
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], edx
test dword [esi + 0xdc], 2
jne 0x100023a6
lea eax, [esi + 0x98]
mov dword [edi + 0xd0], 0x10006660
push eax
mov dword [edi + 0xd4], 0x10006720
mov dword [edi + 0xd8], fcn.10006bc0
mov dword [edi + 0xdc], 0x10001e80
mov dword [edi + 0xe0], 0x10001ed0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test dword [esi + 0xdc], 4
jne 0x100022c0
mov eax, dword [esi + 0x20]
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
cmp dword [esi + 0x24], 0
jne 0x100022b7
mov dword [esi + 0x24], edi
jmp 0x100022bd
mov eax, dword [esi + 0x20]
mov dword [eax + 0xc], edi
mov dword [esi + 0x20], edi
mov eax, dword [esi + 8]
mov dword [edi], eax
mov dword [edi + 4], 0
cmp dword [esi + 0xc], 0
jne 0x100022d7
mov dword [esi + 0xc], edi
jmp 0x100022dd
mov eax, dword [esi + 8]
mov dword [eax + 4], edi
lea eax, [esi + 0x98]
mov dword [esi + 8], edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x10002303
push 0
lea eax, [edi + 0x28]
push eax
push edi
push dword [esi + 0x44]
call ecx
add esp, 0x10
test dword [esi + 0xdc], 4
je 0x10002351
push edi
push 0x10001910
push dword [esi + 0x74]
lea ecx, [edi + 0x50]
mov edx, str.MHD_connection
call fcn.10008990
add esp, 0xc
test eax, eax
jne 0x10002395
call fcn.100adf37
mov eax, dword [eax]
push eax
mov dword [esp + 0x14], eax
call fcn.100b82eb
add esp, 4
push eax
push str.Failed_to_create_a_thread:__s_n
push esi
call fcn.100085c0
add esp, 0xc
jmp 0x100023ae
cmp dword [esp + 0x20], 1
jne 0x10002395
cmp dword [esi + 0xb8], 0xffffffff
je 0x10002395
push 0
push 1
push 0x1013ed14
push dword [esi + 0xbc]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10002395
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10002395
push str.Failed_to_signal_new_connection_via_inter_thread_communication_channel.
push esi
call fcn.100085c0
add esp, 8
inc dword [esi + 0xc8]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esp + 0x10], 0x16
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x100023c4
push 1
lea eax, [edi + 0x28]
push eax
push edi
push dword [esi + 0x44]
call ecx
add esp, 0x10
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x100023ed
push 0x1013f180
push 0xa76
push 0x1013f198
push dword [0x10149f20]
call dword [0x10149f24]
add esp, 0x10
mov edx, dword [esp + 0x18]
mov ecx, esi
push ebp
call fcn.10001580
add esp, 4
lea ebx, [esi + 0x98]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test dword [esi + 0xdc], 4
jne 0x10002447
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
test ecx, ecx
jne 0x10002424
mov dword [esi + 0x20], eax
jmp 0x10002427
mov dword [ecx + 8], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
test ecx, ecx
jne 0x10002436
mov dword [esi + 0x24], eax
jmp 0x10002439
mov dword [ecx + 0xc], eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [edi + 4]
mov eax, dword [edi]
test ecx, ecx
jne 0x10002455
mov dword [esi + 8], eax
jmp 0x10002457
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
test ecx, ecx
jne 0x10002465
mov dword [esi + 0xc], eax
jmp 0x10002468
mov dword [ecx + 4], eax
push ebx
mov dword [edi], 0
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi + 0x20]
call fcn.100084e0
push dword [edi + 0x4c]
call fcn.100a9867
add esp, 4
jmp 0x100021ef
push str.Server_reached_connection_limit._Closing_inbound_connection._n
push esi
call fcn.100085c0
add esp, 8
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x100024cb
push 0x1013ecec
push 0x987
push 0x1013ed18
push dword [0x10149f20]
call dword [0x10149f24]
add esp, 0x10
call fcn.100adf37
pop edi
pop esi
pop ebp
mov dword [eax], 0x17
xor eax, eax
pop ebx
pop ecx
ret