Function at 0x140010c3c
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc8
and dword [rsp + 0x74], 0
xor sil, sil
xor r12d, r12d
mov byte [rsp + 0x60], sil
xor r13d, r13d
mov qword [rsp + 0x68], r12
xor eax, eax
mov dword [rsp + 0xa0], r13d
or rbp, 0xffffffffffffffff
mov dword [rsp + 0x78], eax
xor r14d, r14d
mov rdi, r8
test r9, r9
je 0x140010c9d
mov r14d, dword [r9]
dec r14d
mov ebx, 0x1f4
mov ecx, 0x1618
lea edx, [rbx - 0x28]
call fcn.1400013f4
mov qword [rsp + 0x98], rax
test rax, rax
je 0x140011142
mov r15, qword [rsp + 0x130]
add rax, 0x1000
mov qword [rsp + 0xb0], rax
add rax, 0x208
mov qword [rsp + 0x88], rax
lea rcx, [rax + 0x104]
mov qword [rsp + 0xb8], rcx
lea rbx, [rcx + 0x104]
mov qword [rsp + 0xa8], rbx
test r15, r15
je 0x140010d1c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x88]
and dword [rsp + 0x90], r12d
mov byte [rbx], sil
cmp byte [rbx], 0
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x118]
mov r9d, 0x50
cmovne rcx, rbx
mov rdx, rax
call fcn.1400107d8
mov rcx, qword [rsp + 0x118]
lea rdx, [0x140034c2c]
mov rbx, rax
call fcn.14000914c
test eax, eax
jns 0x140010d7a
test rbx, rbx
jne 0x140010d7a
test rdi, rdi
je 0x140010d7a
cmp byte [rdi], bl
je 0x140010d7a
inc sil
mov byte [rsp + 0x60], sil
test sil, sil
jne 0x140010d88
test rbx, rbx
je 0x1400110d1
cmp qword [rsp + 0x110], 0
je 0x140010e7f
test sil, sil
jne 0x140010dfa
mov rcx, qword [rsp + 0x138]
mov r9, rbx
movsxd rax, dword [rsp + 0x74]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x50], rcx
or rcx, 0xffffffffffffffff
and qword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call fcn.140010518
mov rbx, rax
test rax, rax
jne 0x140010dfd
mov ebx, 0x1f4
jmp 0x140011142
mov rbx, rdi
mov rcx, rbx
mov dword [rsp + 0x80], 0xfff
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r8d, dword [rsp + 0x70]
lea rcx, [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov r9, rbx
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], eax
call fcn.140010a84
mov rbp, rax
test sil, sil
jne 0x140010e61
mov rcx, rbx
call fcn.14000522c
cmp rbp, 0xffffffffffffffff
je 0x1400110d8
mov eax, dword [rsp + 0x80]
mov r15, qword [rsp + 0x98]
jmp 0x140010f4f
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x88]
call fcn.14001096c
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400110d8
lea r8, [rsp + 0x80]
mov dword [rsp + 0x80], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
test sil, sil
jne 0x140010f0d
mov rcx, qword [rsp + 0x138]
mov r9, rbx
movsxd rax, dword [rsp + 0x74]
mov r8d, dword [rsp + 0x70]
mov qword [rsp + 0x50], rcx
mov rcx, rbp
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rdx, qword [rsp + 0x88]
call fcn.140010518
jmp 0x140010f18
mov rdx, rdi
mov rcx, rbp
call fcn.1400106e0
test r15, r15
je 0x140010f28
mov rdx, r15
mov rcx, rbp
call fcn.1400106e0
mov r15, qword [rsp + 0x98]
mov r9d, 0x2710
mov rdx, r15
mov r8d, 0xfff
mov rcx, rbp
call fcn.140010408
test eax, eax
jle 0x1400110d8
movsxd rsi, eax
lea rbx, [r15 + 0x1000]
add rsi, r15
mov r8d, 0x104
mov rdx, rbx
mov rcx, r15
mov byte [rsi], 0
call fcn.140002754
mov edx, 1
mov rcx, rbx
mov r15, rax
call fcn.14000864c
mov rcx, rax
xor edx, edx
call fcn.1400019a8
mov rcx, qword [rsp + 0xb0]
lea rdx, str.HTTP_
mov r8d, 5
mov ebx, eax
call fcn.140033a28
test eax, eax
jne 0x14001125b
cmp byte [r15], al
je 0x14001107c
mov r13, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb8]
mov r8d, 0x104
mov rdx, r13
mov rcx, r15
call fcn.140002754
cmp byte [r13], 0
mov r15, rax
je 0x140011069
mov r8, rdi
lea rdx, [0x1400349f8]
mov rcx, r13
call fcn.14000752c
mov edx, 1
mov rcx, r13
call fcn.14000864c
lea rdx, str.Content_Length:
mov qword [rsp + 0x80], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x14001103a
mov rcx, qword [rsp + 0x80]
xor edx, edx
call fcn.1400019a8
mov dword [rsp + 0x78], eax
jmp 0x14001105f
lea rdx, str.Location:
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x14001105f
mov rdx, qword [rsp + 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [r15], 0
jne 0x140010fcf
mov r13d, dword [rsp + 0xa0]
mov r12d, r13d
mov rdi, qword [rsp + 0x120]
cmp ebx, 0x12e
jne 0x1400110e6
mov eax, dword [rsp + 0x90]
inc eax
mov dword [rsp + 0x90], eax
cmp eax, 0xa
jg 0x1400110df
mov rax, qword [rsp + 0xa8]
cmp byte [rax], 0
je 0x1400110e6
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x88]
mov sil, byte [rsp + 0x60]
mov r15, qword [rsp + 0x130]
mov rbx, qword [rsp + 0xa8]
jmp 0x140010d27
mov ebx, 0x190
jmp 0x140011142
mov ebx, 0x1e4
jmp 0x140011142
mov ebx, 0x1ec
jmp 0x140011142
test rdi, rdi
je 0x14001114a
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov r8d, 1
mov rcx, rbp
mov rdx, rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub esi, r15d
mov r12d, eax
test esi, esi
jle 0x1400111a9
mov rdx, r15
mov rcx, rdi
cmp esi, r14d
jle 0x14001119a
movsxd rbx, r14d
mov r8, rbx
call sub.ntdll.dll_memcpy
add rdi, rbx
mov r13d, r14d
mov ebx, 0x1e5
mov r12, qword [rsp + 0x68]
test rdi, rdi
je 0x14001114a
mov byte [rdi], 0
mov rax, qword [rsp + 0x128]
test rax, rax
je 0x14001115a
mov dword [rax], r13d
cmp rbp, 0xffffffffffffffff
je 0x140011169
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
test r12, r12
je 0x140011177
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x98]
call fcn.14000522c
mov eax, ebx
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
movsxd r8, esi
call sub.ntdll.dll_memcpy
mov r15, qword [rsp + 0x68]
jmp 0x1400111c6
mov r15, qword [rsp + 0x68]
xor r9d, r9d
mov r8d, r14d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test eax, eax
jle 0x1400111f9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rcx, esi
sub r14d, esi
add rdi, rcx
mov r12d, eax
mov eax, dword [rsp + 0x78]
add r13d, esi
test eax, eax
je 0x1400111ee
cmp eax, r13d
je 0x14001113d
jb 0x140011232
test r14d, r14d
je 0x140011138
jmp 0x1400111ae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140011246
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r12d
cmp eax, 0x7530
ja 0x14001123c
mov edx, WSAAsyncSelect
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x1400111ae
mov ebx, 0xd2
jmp 0x14001113d
mov ebx, 0x198
jmp 0x14001113d
cmp dword [rsp + 0x78], 0
je 0x14001113d
mov ebx, 0x1e6
jmp 0x14001113d
mov ebx, 0x19c
jmp 0x140011142