Function at 0x40b1f0
Capabilities:
Check http status code

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2a8
mov r15d, 0x1e
mov qword [rsp + 0x60], 0
mov r12, rcx
mov rbp, rdx
mov rsi, r8
mov qword [rsp + 0x68], 0
mov rdi, r9
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x1a0], 0
mov qword [rsp + 0x1a8], 0
mov qword [rsp + 0x1b0], 0
mov qword [rsp + 0x1b8], 0
mov qword [rsp + 0x1c0], 0
mov qword [rsp + 0x1c8], 0
mov qword [rsp + 0x1d0], 0
mov qword [rsp + 0x1d8], 0
mov qword [rsp + 0x1e0], 0
mov qword [rsp + 0x1e8], 0
mov qword [rsp + 0x1f0], 0
mov qword [rsp + 0x1f8], 0
mov qword [rsp + 0x200], 0
mov qword [rsp + 0x208], 0
mov qword [rsp + 0x210], 0
mov qword [rsp + 0x218], 0
mov qword [rsp + 0x220], 0
mov qword [rsp + 0x228], 0
mov qword [rsp + 0x230], 0
mov qword [rsp + 0x238], 0
mov qword [rsp + 0x240], 0
mov qword [rsp + 0x248], 0
mov qword [rsp + 0x250], 0
mov qword [rsp + 0x258], 0
mov qword [rsp + 0x260], 0
mov qword [rsp + 0x268], 0
mov qword [rsp + 0x270], 0
mov qword [rsp + 0x278], 0
mov qword [rsp + 0x280], 0
mov qword [rsp + 0x288], 0
mov r13d, dword [rsp + 0x318]
mov qword [rsp + 0x290], 0
mov qword [rsp + 0x298], 0
and r13d, 1
je 0x40b3c8
mov rax, qword [0x0063f880]
mov r15d, dword [rax]
mov rax, qword [0x0063f7f0]
lea r14, [rsp + 0x80]
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x78], r14
mov rbx, qword [sym.imp.libcurl_4.dll_curl_easy_setopt]
mov qword [rsp + 0x88], 0
cmp byte [rax], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
jne 0x40b9e8
mov r8, rbp
mov edx, 0x2712
mov rcx, r12
call rbx
mov rax, qword [0x0063f760]
mov r8, qword [rax]
test r8, r8
je 0x40b442
mov edx, 0x2751
mov rcx, r12
call rbx
lea rbp, [rsp + 0x1a0]
xor r8d, r8d
mov edx, 0x40
mov rcx, r12
call rbx
lea r8, [0x005e6bc3]
mov edx, 0x2776
mov rcx, r12
call rbx
xor r8d, r8d
mov edx, 0x2d
mov rcx, r12
call rbx
mov r8d, 1
mov edx, 0x63
mov rcx, r12
call rbx
mov r8d, 1
mov edx, 0x79
mov rcx, r12
call rbx
lea r8, [0x0040a4d0]
mov edx, 0x4e2b
mov rcx, r12
call rbx
lea r8, [rsp + 0x60]
mov edx, 0x2711
mov rcx, r12
call rbx
mov r8, rbp
mov edx, 0x271a
mov rcx, r12
call rbx
mov rax, qword [0x0063f840]
cmp byte [rax], 0
jne 0x40b9d0
mov r8d, r15d
mov edx, 0xd
mov rcx, r12
call rbx
lea r8, [0x0040a2e0]
mov edx, 0x4e6f
mov rcx, r12
call rbx
mov r8, r14
mov edx, 0x272d
mov rcx, r12
call rbx
mov rax, qword [0x0063f800]
mov r8, qword [rax]
test r8, r8
je 0x40b52a
mov edx, 0x2714
mov rcx, r12
call rbx
mov rax, qword [0x0063f810]
mov edx, 0x65
mov rcx, r12
mov r8d, dword [rax]
call rbx
test rsi, rsi
je 0x40b54c
mov r8, rsi
mov edx, 0x2715
mov rcx, r12
call rbx
mov r8d, 1
mov edx, 0x6b
mov rcx, r12
call rbx
test r13d, r13d
jne 0x40ba20
mov r8, rdi
mov edx, 0x271f
mov rcx, r12
call rbx
mov rax, qword [0x0063f7f0]
cmp byte [rax], 0
jne 0x40ba00
mov rsi, qword [sym.imp.libcurl_4.dll_curl_slist_append]
xor ecx, ecx
lea rdx, str.Content_Type:_application_json
call rsi
lea rdx, str.User_Agent:_cpuminer_opt_23.14_x64W
mov rcx, rax
call rsi
lea rdx, str.X_Mining_Extensions:_longpoll_reject_reason
mov rcx, rax
call rsi
mov edx, 0x2727
mov rcx, r12
mov r8, rax
mov r14, rax
call rbx
mov rcx, r12
call qword [sym.imp.libcurl_4.dll_curl_easy_perform]
cmp qword [rsp + 0x310], 0
mov ebx, eax
je 0x40b5cc
mov rax, qword [rsp + 0x310]
mov dword [rax], ebx
test ebx, ebx
jne 0x40bc70
mov rax, qword [0x0063fed0]
cmp byte [rax], 0
je 0x40b610
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x40b610
mov r8d, 0xe
lea rdx, str.stratumtcp:__
call qword [sym.imp.msvcrt.dll__strnicmp]
test eax, eax
je 0x40bbc0
nop dword [rax + rax]
mov rax, qword [0x0063f5d0]
cmp byte [rax], 0
je 0x40b8d0
mov r15, qword [rsp + 0x60]
test r15, r15
je 0x40bd00
mov rcx, r15
call sub.msvcrt.dll_strlen
mov edx, 1
lea rcx, [rax + rax + 1]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x40be40
movzx eax, byte [r15]
test al, al
je 0x40be40
mov rdi, qword [sym.imp.msvcrt.dll__errno]
xor r11d, r11d
xor r8d, r8d
xor r10d, r10d
mov dword [rsp + 0x28], 0
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x2f0], r12
jmp 0x40b6cf
cmp al, 0x5c
je 0x40b8a0
mov ecx, r10d
or cl, r8b
jne 0x40b808
movsx ecx, al
mov r10d, 0
sub ecx, 0x30
cmp ecx, 0xa
cmovae ebx, dword [rsp + 0x28]
setb r8b
mov dword [rsp + 0x28], ebx
mov byte [rbp], al
movzx eax, byte [rsi]
test al, al
je 0x40b6f4
mov r11d, r9d
mov ebx, edi
lea r9d, [r11 + 1]
movsxd rbp, ebx
lea edi, [rbx + 1]
movsxd rsi, r9d
add rbp, r13
add rsi, r15
cmp al, 0x22
jne 0x40b690
mov byte [rbp], al
movzx eax, byte [rsi]
xor r10d, 1
test al, al
jne 0x40b6ca
mov r12, qword [rsp + 0x2f0]
mov qword [rsp + 0x28], rdx
mov rax, qword [rsp + 0x30]
call rax
mov rdx, qword [rsp + 0x28]
mov rcx, r13
mov dword [rax], 0
mov r8, rdx
xor edx, edx
call fcn.005a7b50
mov rcx, r13
mov r15, rax
call sub.msvcrt.dll_free
test r15, r15
je 0x40be60
mov rax, qword [0x0063f7f0]
cmp byte [rax], 0
jne 0x40ba40
lea rdx, str.result
mov rcx, r15
call fcn.005a8b90
lea rdx, str.error
mov rcx, r15
mov rbx, rax
call fcn.005a8b90
mov r13, rax
test rbx, rbx
je 0x40ba98
test rax, rax
je 0x40b789
cmp dword [rax], 7
je 0x40b789
test byte [rsp + 0x318], 4
je 0x40baa1
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x40b7ad
call fcn.005a8f80
lea rdx, str.reject_reason
mov rcx, r15
mov r8, rax
call fcn.005a96c0
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
mov rcx, r14
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
call qword [sym.imp.libcurl_4.dll_curl_slist_free_all]
mov rcx, r12
call qword [sym.imp.libcurl_4.dll_curl_easy_reset]
mov rax, r15
add rsp, 0x2a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test r8b, r8b
je 0x40b6c0
lea ecx, [rax - 0x2b]
cmp cl, 0x3a
jbe 0x40ba78
mov ecx, ebx
sub ecx, dword [rsp + 0x28]
xor r8d, r8d
cmp ecx, 4
jle 0x40b6c0
mov dword [rsp + 0x48], r11d
mov rax, qword [rsp + 0x30]
mov byte [rsp + 0x44], r10b
mov dword [rsp + 0x40], r9d
mov qword [rsp + 0x38], rdx
call rax
movsxd rcx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x38]
mov r8d, 0xa
mov dword [rax], 0
add rcx, r13
call fcn.005d9d70
mov rdx, qword [rsp + 0x38]
mov r9d, dword [rsp + 0x40]
mov rax, qword [rsp + 0xa0]
movzx r10d, byte [rsp + 0x44]
movsxd r11, dword [rsp + 0x48]
cmp byte [rax], 0
je 0x40bde0
movzx eax, byte [r15 + r11]
xor r8d, r8d
jmp 0x40b6c0
mov byte [rbp], 0x5c
movzx eax, byte [rsi]
test al, al
je 0x40b6f4
lea r9d, [r11 + 2]
movsxd rdi, edi
movsxd rsi, r9d
lea rbp, [r13 + rdi]
lea edi, [rbx + 2]
add rsi, r15
jmp 0x40b6c0
mov rax, qword [0x0063fec0]
cmp byte [rax], 0
je 0x40b620
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x40b620
mov rax, qword [0x0063f5c0]
cmp byte [rax], 0
jne 0x40b620
mov rax, qword [0x0063f4e0]
cmp byte [rax], 0
je 0x40b620
mov rax, qword [0x0063f5e0]
cmp byte [rax], 0
jne 0x40b620
mov rax, qword [0x0063f5d0]
mov rdx, qword [0x0063fe50]
mov ecx, 1
mov byte [rax], 1
mov rax, qword [0x0063f630]
movsxd rax, dword [rax]
lea rax, [rax + rax*4]
shl rax, 4
add rax, qword [rdx]
mov edx, 0x18
mov rdi, qword [rax + 0x20]
call sub.msvcrt.dll_calloc
mov r15, rax
test rax, rax
je 0x40b9b6
mov qword [rax], rsi
lea rsi, [rax + 8]
lea r13, [rdi + 0x18]
mov qword [rax + 8], rsi
mov rcx, r13
mov qword [rax + 0x10], rsi
call fcn.005af240
cmp byte [rdi + 0x10], 0
jne 0x40bebd
mov rax, qword [rdi + 8]
movq xmm0, rdi
mov qword [rdi + 8], rsi
movq xmm2, rax
punpcklqdq xmm0, xmm2
movups xmmword [r15 + 8], xmm0
mov qword [rax], rsi
lea rcx, [rdi + 0x20]
call fcn.005b0360
mov rcx, r13
call fcn.005b0170
mov qword [rsp + 0x80], 0
jmp 0x40b620
mov r8d, 1
mov edx, 0x34
mov rcx, r12
call rbx
jmp 0x40b4d2
mov r8d, 1
mov edx, 0x29
mov rcx, r12
call rbx
jmp 0x40b41c
mov r8, rdi
lea rdx, str.JSON_protocol_request:_n_s_n
mov ecx, 5
call fcn.0040a850
jmp 0x40b572
lea r8, [0x0040a270]
mov edx, 0x4eb4
mov rcx, r12
call rbx
jmp 0x40b555
mov rcx, r15
mov edx, 3
call fcn.005a5800
lea rdx, str.JSON_protocol_response:_n_s
mov ecx, 5
mov r13, rax
mov r8, rax
call fcn.0040a850
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x40b744
movabs r12, 0x400000004007fed
bt r12, rcx
jb 0x40b6c0
jmp 0x40b81d
test rax, rax
je 0x40bda0
xor edx, edx
mov rcx, r13
call fcn.005a5800
lea rdx, str.message
mov rcx, r13
mov r15, rax
call fcn.005a8b90
lea rdx, str.code
mov rcx, r13
mov rbx, rax
call fcn.005a8b90
cmp qword [rsp + 0x310], 0
mov rsi, rax
je 0x40baee
mov rcx, rax
call fcn.005a90f0
test rax, rax
jne 0x40be90
test rbx, rbx
je 0x40bafc
cmp dword [rbx], 2
je 0x40bd20
mov rax, qword [r13 + 8]
cmp rax, 0xffffffffffffffff
je 0x40bb14
sub rax, 1
mov qword [r13 + 8], rax
je 0x40bdb8
cmp qword [rsp + 0x310], 0
je 0x40bb2b
mov rax, qword [0x0063f780]
cmp byte [rax], 0
je 0x40bb3f
mov r8, r15
lea rdx, str.JSON_RPC_call_failed:__s
mov ecx, 1
call fcn.0040a6c0
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x80]
xor r15d, r15d
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x88]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
mov rcx, r14
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
call qword [sym.imp.libcurl_4.dll_curl_slist_free_all]
mov rcx, r12
call qword [sym.imp.libcurl_4.dll_curl_easy_reset]
jmp 0x40b7ed
mov rax, qword [0x0063f5e0]
mov rdx, qword [0x0063fe50]
mov ecx, 1
mov rdi, qword [rsp + 0x90]
mov byte [rax], 1
mov rax, qword [0x0063fe30]
movsxd rax, dword [rax]
lea rax, [rax + rax*4]
shl rax, 4
add rax, qword [rdx]
mov edx, 0x18
mov rsi, qword [rax + 0x20]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x40bc5d
mov qword [rax], rdi
lea rdi, [rax + 8]
lea r15, [rsi + 0x18]
mov qword [rax + 8], rdi
mov rcx, r15
mov qword [rax + 0x10], rdi
call fcn.005af240
cmp byte [rsi + 0x10], 0
jne 0x40beb0
mov rax, qword [rsi + 8]
movq xmm0, rsi
mov qword [rsi + 8], rdi
movq xmm1, rax
punpcklqdq xmm0, xmm1
movups xmmword [r13 + 8], xmm0
mov qword [rax], rdi
lea rcx, [rsi + 0x20]
call fcn.005b0360
mov rcx, r15
call fcn.005b0170
mov qword [rsp + 0x90], 0
jmp 0x40b610
lea r8, [rsp + 0x5c]
mov edx, 0x200002
mov rcx, r12
call qword [sym.imp.libcurl_4.dll_curl_easy_getinfo]
cmp ebx, 0x1c
jne 0x40bc8d
test r13d, r13d
jne 0x40bcb9
test byte [rsp + 0x318], 2
je 0x40bca5
cmp dword [rsp + 0x5c], 0x194
je 0x40bdc8
mov r8, rbp
lea rdx, str.HTTP_request_failed:__s
mov ecx, 1
call fcn.0040a6c0
cmp qword [rsp + 0x310], 0
je 0x40bb47
test byte [rsp + 0x318], 2
je 0x40bb47
cmp dword [rsp + 0x5c], 0x194
jne 0x40bb47
nop dword [rax]
mov rax, qword [rsp + 0x310]
mov dword [rax], 0
jmp 0x40bb47
lea rdx, str.Empty_data_received_in_json_rpc_call.
mov ecx, 1
call fcn.0040a6c0
jmp 0x40bb47
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, rbx
call fcn.005a8ff0
mov rcx, rax
call sub.msvcrt.dll__strdup
mov r15, rax
mov rax, qword [0x0063f5d0]
cmp byte [rax], 0
mov rax, qword [r13 + 8]
je 0x40bb00
test r15, r15
je 0x40bb00
mov ecx, 0x13
lea rdi, str.method_not_getwork
mov rsi, r15
repe cmpsb byte [rsi], byte [rdi]
seta dl
sbb dl, 0
test dl, dl
jne 0x40bb00
cmp rax, 0xffffffffffffffff
je 0x40bb3f
sub rax, 1
mov qword [r13 + 8], rax
jne 0x40bb3f
mov rcx, r13
call fcn.005a92e0
jmp 0x40bb3f
lea rcx, str._unknown_reason_
call sub.msvcrt.dll__strdup
mov r15, rax
jmp 0x40bb14
mov rcx, r13
call fcn.005a92e0
jmp 0x40bb14
cmp qword [rsp + 0x310], 0
jne 0x40bce8
jmp 0x40bb47
mov qword [rsp + 0x48], rdx
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x44], r11d
mov byte [rsp + 0x40], r10b
mov dword [rsp + 0x38], r9d
call rax
mov r9d, dword [rsp + 0x38]
movzx r10d, byte [rsp + 0x40]
cmp dword [rax], 0x22
movsxd r11, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x48]
jne 0x40b88e
mov byte [rbp], 0x2e
lea ebp, [rbx + 2]
movsxd rdi, edi
movsxd rbp, ebp
mov byte [r13 + rdi], 0x30
lea edi, [rbx + 3]
add rbp, r13
jmp 0x40b88e
mov rax, qword [sym.imp.msvcrt.dll__errno]
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
jmp 0x40b6fc
mov r8d, dword [rsp + 0xa0]
lea r9, [rsp + 0xfc]
mov ecx, 1
lea rdx, str.JSON_decode_failed__d_:__s
call fcn.0040a6c0
jmp 0x40bb47
mov rcx, rsi
call fcn.005a90f0
mov rdi, qword [rsp + 0x310]
mov dword [rdi], eax
jmp 0x40baee
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x40bc4c
mov rcx, r15
call sub.msvcrt.dll_free
jmp 0x40b9a5