Function at 0x140094670
Capabilities:
Check http status code
Read file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140121ef0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdi, r8
mov r12d, edx
mov qword [rsp + 0x48], r8
mov rax, qword [0x140122018]
mov r15, qword [rax + 0x1a8]
mov rsi, qword [r8 + 0x20]
mov qword [rsp + 0x58], rsi
mov rbx, qword [rsi + 0x108]
test ecx, ecx
je 0x140094703
mov r9d, ecx
mov r8d, dword [r8 + 0x28]
lea rdx, str.CPipeAsync::ReadOrderCompletionRoutine_Error__d___0x_X
mov rcx, r15
call fcn.14004c390
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rax, 0xffffffffffffffff
mov qword [rbx + 8], rax
mov dword [rdi + 0x28], eax
jmp 0x140094d6c
mov ecx, dword [r8 + 0x28]
dec ecx
je 0x140094cf5
dec ecx
je 0x140094c2e
dec ecx
jne 0x140094d58
lea rcx, [r8 + 0x90]
call fcn.1400b63e0
lea rcx, [rdi + 0x30]
call fcn.1400acc60
mov rcx, rax
call qword [sym.imp.MSVCR110.dll_free]
xor r14d, r14d
mov dword [rdi + 0x28], r14d
mov byte [rdi + 0x1ba4], 1
cmp r12d, dword [rdi + 0xb28]
jne 0x140094d5d
lea r12, [0x1400980c0]
mov qword [rsp + 0x30], r12
lea rcx, [rdi + 0x2d0]
lea rdx, [rsp + 0x30]
call fcn.14005a080
mov r8, r12
lea rdx, str.Push_next_function_:_WriteResult__0x_.8X_
mov rcx, r15
call fcn.14004c390
lea rdx, [rdi + 0xb30]
mov r8d, dword [rdi + 0xb28]
lea rcx, [rdi + 0x30]
call fcn.1400acc00
mov r8d, dword [rdi + 0x2c]
lea rdx, [rsp + 0x80]
mov rcx, r15
call fcn.14003ec70
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
mov r12, qword [rax + 8]
mov qword [rsp + 0x40], r12
mov rbx, qword [rax + 0x10]
mov r13, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, dword [rdi + 0x2c]
mov r8, rbx
lea rdx, str.Next_Order_:__s___i____function_0x_.8X___Thread_0x_.4X_
mov rcx, r15
call fcn.14004c390
mov edx, dword [rdi + 0x2c]
mov rcx, rsi
call fcn.140097ea0
test r12, r12
jne 0x140094810
mov edx, dword [rdi + 0x2c]
mov rcx, rsi
call fcn.140032e60
jmp 0x140094d5d
cmp byte [rsi + 0xdc], r14b
jne 0x14009483a
mov eax, dword [rdi + 0x2c]
cmp eax, 0xc8
je 0x14009483a
cmp eax, 0x11
je 0x14009483a
cmp eax, 0x13
je 0x14009483a
mov rcx, rsi
call fcn.140032830
jmp 0x140094d5d
cmp qword [rsi + 0x28], r14
je 0x140094882
lea rbx, [rsi + 0x18]
cmp qword [rbx + 0x18], 8
jb 0x140094850
mov r12, qword [rbx]
jmp 0x140094853
mov r12, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov rdx, r12
mov rcx, r15
call fcn.140032a00
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 8
jb 0x140094875
mov rbx, qword [rbx]
mov word [rbx], r14w
mov rcx, rsi
call fcn.140032fd0
nop
mov dword [rsp + 0x38], 1
cmp dword [rsp + 0x30], 0
je 0x140094b18
cmp byte [rsi + 0x1b8], 0
je 0x140094b18
lea rdx, [rsp + 0x60]
lea rcx, [rsi + 0x188]
call fcn.140094560
mov rbx, qword [rax]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400948c6
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rbx]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov edx, dword [rsp + 0x30]
mov rcx, rbx
call qword [rax + gethostname]
mov r13d, eax
test eax, eax
jns 0x1400949ef
mov dword [rsp + 0x38], r14d
lea rbx, [0x1400d7400]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0x188]
call fcn.140077370
nop
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
mov edx, r13d
call qword [rax + gethostname]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140094934
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov edx, 1
mov rcx, qword [0x140122018]
add rcx, 0xc0
mov r8, qword [rsp + 0x30]
call fcn.14006a5c0
lea r12, vtable.CResult.0
mov qword [rsp + 0xa0], r12
mov dword [rsp + 0xa8], send
mov dword [rsp + 0xac], 0x10004
mov rax, qword [rsp + 0x30]
test rax, rax
cmovne rbx, rax
mov qword [rsp + 0xc8], 7
mov qword [rsp + 0xc0], r14
mov word [rsp + 0xb0], r14w
cmp word [rbx], 0
jne 0x1400949aa
mov rax, r14
jmp 0x1400949ba
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400949b0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0xb0]
call fcn.140003310
nop
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.140032c40
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
jmp 0x140094aef
cmp dword [rsp + 0x38], 0
jne 0x140094bea
lea rbx, [0x1400d7400]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x68]
lea rcx, [rsi + 0x188]
call fcn.140077370
nop
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
mov edx, 0x80042069
call qword [rax + gethostname]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140094a45
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
lea r12, vtable.CResult.0
mov qword [rsp + 0xa0], r12
mov dword [rsp + 0xa8], send
mov dword [rsp + 0xac], 0x10004
mov rax, qword [rsp + 0x30]
test rax, rax
cmovne rbx, rax
mov qword [rsp + 0xc8], 7
mov qword [rsp + 0xc0], r14
mov word [rsp + 0xb0], r14w
cmp word [rbx], 0
jne 0x140094a9e
mov rax, r14
jmp 0x140094aac
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x140094aa2
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0xb0]
call fcn.140003310
nop
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.140032c40
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov r8d, dword [rdi + 0x2c]
lea rdx, str.The_order__i_is_not_allowed__Logon_
mov rcx, r15
call fcn.14004c390
nop
mov qword [rsp + 0xa0], r12
cmp qword [rsp + 0xc8], 8
jb 0x140094be3
mov rcx, qword [rsp + 0xb0]
call sub.mfc110u.dll_Ordinal_1482
jmp 0x140094be3
test r13d, r13d
je 0x140094bea
lea r8, [rsi + 0x38]
cmp qword [r8 + 0x18], 8
jb 0x140094b2f
mov r8, qword [r8]
mov edx, r13d
mov rcx, r15
call fcn.140042270
test eax, eax
jne 0x140094be3
mov dword [rsp + 0x38], r14d
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea r8d, [r13 + 0x7d0]
mov qword [rsp + 0x20], r14
movzx r9d, word [rsi + 0x170]
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14003ee20
lea rax, [r15 + 0xcd8]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1632]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], r14
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov edx, send
mov r9d, 0x3ef
mov r8d, 0x10004
mov rcx, rsi
call fcn.140032c60
mov r8d, dword [rdi + 0x2c]
lea rdx, str.The_order__i_is_not_allowed
mov rcx, r15
call fcn.14004c390
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
cmp dword [rsp + 0x38], 0
je 0x140094bfa
mov rcx, rsi
call fcn.140094da0
mov rcx, rsi
call qword [rsp + 0x40]
nop
jmp 0x140094c09
cmp dword [rdi + 0x28], 0
jne 0x140094d6c
lea rcx, [rdi + 0x30]
call fcn.1400acc60
mov rcx, rax
call qword [sym.imp.MSVCR110.dll_free]
mov dword [rdi + 0x28], r14d
jmp 0x140094d64
cmp edx, dword [r8 + 0xb28]
jne 0x140094d5d
mov rax, qword [r8 + 0xb30]
mov ecx, dword [rax]
mov dword [r8 + 0x2c], ecx
mov rcx, qword [r8 + 0xb30]
mov r12d, dword [rcx + 4]
test rcx, rcx
je 0x140094c6a
call qword [sym.imp.MSVCR110.dll_free]
xor r14d, r14d
mov qword [rdi + Ordinal_2866], r14
jmp 0x140094c6d
xor r14d, r14d
mov rcx, r12
call qword [sym.imp.MSVCR110.dll_malloc]
mov qword [rdi + Ordinal_2866], rax
test rax, rax
jne 0x140094c90
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140094d5d
mov dword [rdi + 0xb28], r12d
lea rcx, [fcn.140094670]
mov qword [rsp + 0x20], rcx
mov r9, rdi
mov r8d, r12d
mov rdx, rax
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x140094d58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov r9, qword [rbx + 8]
lea rdx, str.CPipeAsync::ReadOrderCompletionRoutine_1___Pipe_Error:_0x_.8X___0x_.8X__
mov rcx, r15
call fcn.14004c390
mov rcx, qword [rdi + 0xb30]
test rcx, rcx
je 0x140094d5d
call qword [sym.imp.MSVCR110.dll_free]
mov qword [rdi + Ordinal_2866], r14
jmp 0x140094d5d
test edx, edx
jne 0x140094d5d
mov dword [r8 + Ordinal_2866], 8
lea ecx, [rdx + 8]
call qword [sym.imp.MSVCR110.dll_malloc]
mov qword [rdi + Ordinal_2866], rax
lea rcx, [fcn.140094670]
mov qword [rsp + 0x20], rcx
mov r9, rdi
mov r8d, 8
mov rdx, rax
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x140094d58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov r9, qword [rbx + 8]
lea rdx, str.CPipeAsync::ReadOrderCompletionRoutine_1___Pipe_Error:_0x_.8X___0x_.8X__
mov rcx, r15
call fcn.14004c390
jmp 0x140094d5d
inc dword [rdi + 0x28]
jmp 0x140094d6c
or rax, 0xffffffffffffffff
mov dword [rdi + 0x28], eax
mov rcx, rsi
call fcn.140056600
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400bb310
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret