Function at 0x140045590
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov r13, qword [rcx + 0x18]
mov rbx, rcx
mov r14, qword [rcx + 0x1b0]
mov r12d, r9d
mov dword [rbp - 0x21], 0
mov rcx, r13
movsxd r15, edx
mov rdi, qword [r13 + 0x5a8]
mov qword [rbp - 0x39], r14
lea rax, [r15*8 + 0x1f0]
add rax, r13
mov qword [rbp + 7], rax
mov rsi, qword [rax]
mov qword [rbp - 0x31], rsi
call fcn.1400461c0
test al, al
jne 0x140046080
mov byte [r13 + 0x3b0], al
nop dword [rax]
cmp dword [rdi + 0x290], 0
jne 0x140045834
mov r8, qword [rbp + 0x77]
lea rdx, [0x140008250]
xor r15d, r15d
lea r14, [rdi + 0x250]
mov r9d, r12d
mov qword [rbp - 0x19], r15
mov rcx, rbx
mov qword [rbp - 0x29], r15
call fcn.140034be0
mov rcx, qword [rbx + 0x198]
call qword [fcn.140001118]
mov edx, 0x100000
mov qword [rbx + 0x198], r15
mov rcx, r14
call fcn.14002bf40
mov r8, qword [rbp + 0x77]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov r9d, r12d
lea rax, [rbp - 0x19]
mov rdx, r13
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400460c0
test eax, eax
jne 0x140046082
mov r15, qword [rbp - 0x19]
lea r8, [0x140008278]
mov byte [rsp + 0x28], 1
xor r9d, r9d
mov rdx, r13
mov qword [rsp + 0x20], r15
mov rcx, rbx
call fcn.1400401c0
mov r12, qword [rbp - 0x29]
mov esi, eax
test eax, eax
jne 0x140045804
cmp dword [r13 + 0x13c], 1
lea rax, [0x140006e44]
lea r9, [0x140006e40]
mov r8, r15
cmove r9, rax
lea rcx, [0x140017800]
mov rax, qword [rbx + 0x12e8]
lea rdx, [0x140008280]
test rax, rax
cmovne rcx, rax
test r12, r12
mov qword [rsp + 0x28], rcx
lea rax, [0x140017800]
cmovne rax, r12
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14002bed0
mov esi, eax
test eax, eax
jne 0x1400457f5
lea r9d, [rax + 0xa]
mov rdx, r13
lea r8, [0x140006fa8]
mov rcx, rbx
call fcn.14003e160
test rax, rax
jne 0x140045766
mov r8, qword [rbx + 0x8b0]
test r8, r8
je 0x140045766
lea rdx, [0x140007e30]
mov rcx, r14
call fcn.14002bed0
mov esi, eax
test eax, eax
jne 0x1400457f5
mov r9d, reloc.WS2_32.dll_recv
lea r8, [0x140007410]
mov rdx, r13
mov rcx, rbx
call fcn.14003e160
test rax, rax
jne 0x14004579c
lea r8d, [rax + 0x1e]
mov rcx, r14
lea rdx, [0x140007428]
call fcn.14002bf00
mov esi, eax
test eax, eax
jne 0x1400457f5
mov r8, r14
mov dl, 1
mov rcx, rbx
call fcn.14003d990
mov esi, eax
test eax, eax
jne 0x1400457f5
lea r8d, [rax + 2]
mov rcx, r14
lea rdx, [0x140005500]
call fcn.14002bf00
mov esi, eax
test eax, eax
jne 0x1400457f5
mov eax, dword [rbp + 0x6f]
lea r8, [rbx + 0x13e0]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, rbx
mov rcx, r14
call fcn.14003dec0
mov qword [rdi + 0x278], 0
mov esi, eax
test eax, eax
je 0x140045804
lea rdx, [0x1400082a0]
mov rcx, rbx
call fcn.140034b00
mov rcx, r12
call qword [fcn.140001118]
mov rcx, r15
call qword [fcn.140001118]
test esi, esi
jne 0x140045f3e
mov rsi, qword [rbp - 0x31]
mov r14, qword [rbp - 0x39]
mov r15d, dword [rbp + 0x6f]
mov dword [rdi + 0x290], 1
mov r8b, 1
xor edx, edx
mov rcx, rbx
call fcn.140036360
test rax, rax
jle 0x14004609d
mov edx, r15d
mov rcx, r13
call fcn.1400355c0
test al, al
jne 0x140045867
cmp dword [r14 + 0x200], 0
je 0x140046080
cmp dword [r14 + 0x200], 1
jne 0x1400458c7
mov r9, qword [rdi + 0x270]
test r9, r9
jne 0x140045f45
mov rax, qword [rbx + 0xd28]
lea r8, [rbp - 1]
mov qword [rbx + 0x1a8], rax
mov rcx, rbx
mov edx, dword [rbx + 0x720]
call fcn.140042050
test eax, eax
jne 0x140046082
mov rax, qword [rbp - 1]
mov qword [rdi + 0x270], rax
mov r9, rax
test rax, rax
jne 0x140045f45
mov dword [r14 + 0x200], eax
xor r12d, r12d
cmp dword [rdi + 0x280], r12d
je 0x140045970
nop word [rax + rax]
lea rax, [rbp - 0x11]
mov r9d, 1
lea r8, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call fcn.140034c80
mov esi, eax
cmp eax, 0x51
je 0x140046080
mov rcx, rbx
call fcn.1400444d0
test eax, eax
jne 0x140046096
test esi, esi
jne 0x140045961
cmp qword [rbp - 0x11], r12
jle 0x140045e8d
cmp dword [rdi + 0x280], 2
jne 0x140045a86
mov rax, qword [rdi + 0x288]
test rax, rax
je 0x140045a40
dec rax
mov qword [rdi + 0x288], rax
test rax, rax
jg 0x140045e77
mov dword [rdi + 0x290], 2
mov dword [rdi + 0x280], r12d
mov r15d, dword [rbp + 0x6f]
mov r14, qword [rbp - 0x39]
mov rcx, rbx
call fcn.1400444d0
test eax, eax
jne 0x140046096
test r12d, r12d
jne 0x140045fb4
mov eax, dword [rbx + 0x13c4]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400459b9
mov rcx, rbx
call fcn.14003e3d0
test eax, eax
jne 0x140046082
cmp byte [r13 + 0x3b2], al
je 0x1400459b9
mov byte [rdi + 0x295], 1
cmp byte [rdi + 0x295], 0
je 0x140045ef2
cmp qword [rbx + 0x198], 0
je 0x140045f21
mov rsi, qword [rbp + 7]
mov rdx, r13
mov rcx, rbx
mov r8, qword [rsi]
call fcn.140035520
mov qword [rsi], 0xffffffffffffffff
mov eax, dword [rbx + 0x13c4]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140046024
cmp byte [rdi + 0x295], 0
je 0x140045fbe
cmp qword [rbx + 0x198], 0
je 0x140045fbe
lea rdx, [0x140008440]
mov byte [r13 + 0x3b0], 1
mov rcx, rbx
call fcn.140034be0
mov rcx, rbx
call fcn.1400461e0
jmp 0x140045fe3
xor esi, esi
lea rax, [rbp - 9]
lea r9, [rbp - 0x29]
mov qword [rbp - 0x29], rsi
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea r8d, [rsi + 1]
call fcn.1400615d0
cmp eax, 0xffffffff
jne 0x140045e77
lea rdx, [0x140008320]
mov rcx, rbx
call fcn.140034be0
mov dword [rdi + 0x280], esi
jmp 0x140045e6d
mov r8d, 1
lea rdx, [rbp + 0x67]
lea rcx, [rdi + 0x230]
call fcn.14002bf00
test eax, eax
jne 0x140045fa5
cmp byte [rbp + 0x67], 0xa
jne 0x140045e77
inc qword [rdi + 0x278]
lea rcx, [rdi + 0x230]
call fcn.14002bf70
lea rcx, [rdi + 0x230]
mov rsi, rax
call fcn.14002bf60
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rbx
mov r14, rax
call fcn.140034a30
cmp byte [rbx + 0xb31], r12b
jne 0x140045b27
xor edx, edx
mov ecx, 0xa
cmp byte [rbx + 0xb19], dl
mov eax, reloc.WLDAP32.dll_Ordinal_14
mov r9, r14
mov r8, rsi
setne dl
cmp qword [rdi + 0x278], 1
cmove ecx, eax
or edx, ecx
mov rcx, rbx
call fcn.140034a20
test eax, eax
jne 0x140046082
movsxd rax, r14d
add qword [rbx + 0x13d8], rax
movzx eax, byte [rsi]
cmp al, 0xd
je 0x140045da5
cmp al, 0xa
je 0x140045da5
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, [0x1400075f0]
mov rcx, rsi
call fcn.14003abe0
test eax, eax
je 0x140045b6d
mov r14d, dword [rbx + 0x158]
cmp r14d, 0x191
je 0x140045b96
mov r8d, reloc.WS2_32.dll_send
lea rdx, [0x140007608]
mov rcx, rsi
call fcn.14003abe0
test eax, eax
je 0x140045bdc
mov r14d, dword [rbx + 0x158]
cmp r14d, 0x197
jne 0x140045bdc
mov rcx, rsi
call fcn.14003e2c0
mov rsi, rax
test rax, rax
je 0x140045f9b
cmp r14d, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.14003fec0
mov rcx, rsi
mov r14d, eax
call qword [fcn.140001118]
test r14d, r14d
je 0x140045d94
mov eax, r14d
jmp 0x140046082
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, [0x140006ec8]
mov rcx, rsi
call fcn.14003abe0
test eax, eax
je 0x140045c4f
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140045c28
lea rdx, [0x1400083a0]
mov rcx, rbx
call fcn.140034be0
lea rcx, [rdi + 0x230]
call fcn.14002bf80
jmp 0x140045e77
xor edx, edx
lea r9, [rdi + 0x288]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.140047b60
lea rcx, [rdi + 0x230]
call fcn.14002bf80
jmp 0x140045e77
lea r9, [0x14000754c]
mov qword [rsp + 0x20], 5
mov r8d, listen
lea rdx, [0x140006ed8]
mov rcx, rsi
call fcn.14003e1f0
test al, al
jne 0x140045d8d
mov r8d, reloc.WS2_32.dll_select
lea rdx, [0x140006ee8]
mov rcx, rsi
call fcn.14003abe0
test eax, eax
je 0x140045d28
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140045ccc
lea rdx, [0x1400083d8]
mov rcx, rbx
call fcn.140034be0
lea rcx, [rdi + 0x230]
call fcn.14002bf80
jmp 0x140045e77
lea r9, [0x140006970]
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, [0x140006ee8]
mov rcx, rsi
call fcn.14003e1f0
test al, al
je 0x140045d94
lea rdx, [0x140008410]
mov rcx, rbx
call fcn.140034be0
mov rcx, rbx
mov byte [rdi + 0x294], 1
call fcn.1400615b0
lea rcx, [rdi + 0x230]
call fcn.14002bf80
jmp 0x140045e77
lea r9, [0x14000754c]
mov qword [rsp + 0x20], 5
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, [0x140007508]
mov rcx, rsi
call fcn.14003e1f0
test al, al
jne 0x140045d8d
lea r9, [rbx + 0x158]
mov rcx, rsi
lea r8, [rbp - 0x21]
lea rdx, [0x140008430]
call fcn.14002b500
cmp eax, 2
jne 0x140045d94
mov eax, dword [rbx + 0x158]
lea rcx, [rdi + 0x230]
mov dword [rbx + 0x13c4], eax
call fcn.14002bf80
jmp 0x140045e77
mov byte [rdi + 0x295], 1
lea rcx, [rdi + 0x230]
call fcn.14002bf80
jmp 0x140045e77
cmp dword [rbx + 0x158], 0x197
jne 0x140045e5d
cmp byte [rbx + 0x135d], r12b
jne 0x140045e5d
mov r8, qword [rdi + 0x288]
mov dword [rdi + 0x280], 2
test r8, r8
je 0x140045df6
lea rdx, [0x140008358]
mov rcx, rbx
call fcn.140034be0
cmp dword [rdi + 0x280], r12d
jne 0x140045e84
jmp 0x140045e64
cmp byte [rdi + 0x294], r12b
je 0x140045e5d
lea rdx, [0x140008380]
mov rcx, rbx
call fcn.140034be0
lea rax, [rsi + 1]
mov byte [rbx + 0x1c3], 1
cmp byte [rax], 0xa
lea r9, [rbp - 0x11]
mov r8d, 1
mov rcx, rbx
cmove rsi, rax
lea rax, [rbp - 5]
mov qword [rsp + 0x20], rax
lea rdx, [rsi + 1]
call fcn.1400615d0
cmp eax, 0xffffffff
jne 0x140045de7
lea rdx, [0x140008320]
mov rcx, rbx
call fcn.140034be0
mov dword [rdi + 0x290], 2
mov dword [rdi + 0x280], r12d
cmp qword [rdi + 0x288], r12
jne 0x140045e77
mov dword [rdi + 0x290], 2
cmp dword [rdi + 0x280], r12d
je 0x140045968
mov rsi, qword [rbp - 0x31]
jmp 0x1400458e0
cmp dword [rbx + 0x218], r12d
je 0x140045ece
cmp dword [rbx + 0xe88], r12d
je 0x140045ece
cmp qword [rbx + 0x12e8], r12
je 0x140045ece
lea rdx, [0x1400082e8]
mov byte [r13 + 0x3b0], 1
mov rcx, rbx
call fcn.140034be0
mov dword [rdi + 0x280], 0
jmp 0x140045968
lea rdx, [0x140008308]
mov rcx, rbx
mov r12d, 1
call fcn.140034b00
mov dword [rdi + 0x280], 0
jmp 0x140045968
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400459ed
cmp dword [rdi + 0x290], 2
mov rsi, qword [rbp - 0x31]
mov r12d, dword [rbp + 0x7f]
jne 0x140045610
mov dl, 1
mov rcx, rbx
call fcn.140046450
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400459ed
mov rsi, qword [rbp - 0x31]
mov r12d, dword [rbp + 0x7f]
jmp 0x140045610
mov eax, esi
jmp 0x140046082
mov r8, qword [rbx + 0x1a8]
lea rax, [rbp + 0x67]
mov rdx, qword [r13 + 0x420]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140034f60
mov ecx, eax
test eax, eax
jne 0x140045f82
mov r9, qword [rbp + 0x67]
lea edx, [rax + 2]
mov r8, qword [rbx + 0x1a8]
mov rcx, rbx
call fcn.140034a30
mov ecx, eax
mov rax, qword [rbp + 0x67]
sub qword [rdi + 0x270], rax
add qword [rbx + 0x1a8], rax
mov eax, ecx
jmp 0x140046082
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140046082
lea rdx, [0x140008338]
mov rcx, rbx
call fcn.140034b00
mov eax, gethostname
jmp 0x140046082
mov rcx, qword [rbx + 0x198]
call qword [fcn.140001118]
mov edx, 2
mov qword [rbx + 0x198], 0
mov rcx, r13
call fcn.140035670
mov dword [rdi + 0x290], 0
cmp byte [r13 + 0x3b0], 0
jne 0x140046080
lea rcx, [rdi + 0x230]
call fcn.14002bf10
mov r8d, dword [rbx + 0x158]
lea rdx, [0x140008458]
mov rcx, rbx
call fcn.140034b00
mov eax, gethostname
jmp 0x140046082
mov dword [rdi + 0x290], 2
mov rcx, qword [rbx + 0x12e8]
call qword [fcn.140001118]
mov qword [rbx + 0x12e8], 0
lea rdx, [0x140008488]
mov r8d, dword [rbx + 0x13c4]
mov rcx, rbx
mov word [rbx + 0xe8c], 1
call fcn.140034be0
mov byte [rbx + 0x1c3], 0
lea rcx, [rdi + 0x230]
mov byte [r13 + 0x3bd], 0
call fcn.14002bf10
xor eax, eax
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, Ordinal_46
jmp 0x140046082
lea rdx, [0x1400082c0]
mov rcx, rbx
call fcn.140034b00
mov eax, 0x1c
jmp 0x140046082