Function at 0x40b790
Capabilities:
Check http status code

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2f8
mov r14d, 0x1e
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 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 qword [rsp + 0x290], 0
mov qword [rsp + 0x298], 0
mov qword [rsp + 0x2a0], 0
mov qword [rsp + 0x2a8], 0
mov qword [rsp + 0x2b0], 0
mov qword [rsp + 0x2b8], 0
mov qword [rsp + 0x2c0], 0
mov qword [rsp + 0x2c8], 0
mov qword [rsp + 0x2d0], 0
mov qword [rsp + 0x2d8], 0
mov qword [rsp + 0x2e0], 0
mov esi, dword [rsp + 0x368]
mov qword [rsp + 0x2e8], 0
mov r12, rcx
mov rbp, rdx
mov rdi, r8
mov r13, r9
and esi, 1
je 0x40b95d
mov rax, qword [0x007a75f0]
mov r14d, dword [rax]
mov rax, qword [0x007a7560]
mov qword [rsp + 0x90], 0
cmp byte [rax], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov rbx, qword [sym.imp.libcurl_4.dll_curl_easy_setopt]
jne 0x40bf48
mov r8, rbp
mov edx, 0x2712
mov rcx, r12
call rbx
mov rax, qword [0x007a74c0]
mov r8, qword [rax]
test r8, r8
je 0x40b9be
mov edx, 0x2751
mov rcx, r12
call rbx
xor r8d, r8d
mov edx, 0x40
mov rcx, r12
call rbx
lea r8, [0x00739cf4]
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, [0x0040ace0]
mov edx, 0x4e2b
mov rcx, r12
call rbx
lea r8, [rsp + 0x60]
mov edx, 0x2711
mov rcx, r12
call rbx
lea rbp, [rsp + 0x70]
lea r8, [0x0040ab00]
mov edx, 0x4e2c
mov rcx, r12
call rbx
mov r8, rbp
mov edx, 0x2719
mov rcx, r12
call rbx
lea r8, [0x0040aa00]
mov edx, 0x4ec7
mov rcx, r12
call rbx
mov r8, rbp
mov edx, 0x27b8
mov rcx, r12
lea rbp, [rsp + 0x1f0]
call rbx
mov r8, rbp
mov edx, 0x271a
mov rcx, r12
call rbx
mov rax, qword [0x007a75b0]
cmp byte [rax], 0
jne 0x40bfa0
mov r8d, r14d
mov edx, 0xd
mov rcx, r12
call rbx
lea r8, [0x0040ab50]
mov edx, 0x4e6f
mov rcx, r12
call rbx
lea r8, [rsp + 0x90]
mov edx, 0x272d
mov rcx, r12
call rbx
mov rax, qword [0x007a7570]
mov r8, qword [rax]
test r8, r8
je 0x40baec
mov edx, 0x2714
mov rcx, r12
call rbx
mov rax, qword [0x007a7580]
mov edx, 0x65
mov r8d, dword [rax]
mov rcx, r12
call rbx
test rdi, rdi
je 0x40bb0e
mov r8, rdi
mov edx, 0x2715
mov rcx, r12
call rbx
mov r8d, 1
mov edx, 0x6b
mov rcx, r12
call rbx
test esi, esi
jne 0x40bf80
mov r8d, 1
mov edx, 0x2f
mov rcx, r12
call rbx
mov rax, qword [0x007a7560]
cmp byte [rax], 0
jne 0x40bf60
mov rcx, r13
mov qword [rsp + 0x70], r13
call sub.msvcrt.dll_strlen
lea r13, [rsp + 0xb0]
mov r8, rax
mov rcx, r13
lea rdx, str.Content_Length:__lu
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 0
call fcn.0040aa40
mov rdi, qword [sym.imp.libcurl_4.dll_curl_slist_append]
xor ecx, ecx
lea rdx, str.Content_Type:_application_json
call rdi
mov rcx, rax
mov rdx, r13
call rdi
mov rcx, rax
lea rdx, str.User_Agent:_cpuminer_opt_gr_1.1.0
call rdi
mov rcx, rax
lea rdx, str.X_Mining_Extensions:_longpoll_reject_reason
call rdi
mov r8, rax
mov edx, 0x2727
mov rcx, r12
mov r13, rax
call rbx
mov rcx, r12
call qword [sym.imp.libcurl_4.dll_curl_easy_perform]
cmp qword [rsp + 0x360], 0
mov edi, eax
je 0x40bbd0
mov rax, qword [rsp + 0x360]
mov dword [rax], edi
test edi, edi
jne 0x40c19d
mov rax, qword [0x007a7d20]
cmp byte [rax], 0
je 0x40bc10
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x40bc10
mov r8d, 0xe
lea rdx, str.stratumtcp:__
call qword [sym.imp.msvcrt.dll__strnicmp]
test eax, eax
je 0x40c0f1
nop dword [rax]
mov rax, qword [0x007a72f0]
cmp byte [rax], 0
je 0x40be50
mov r15, qword [rsp + 0x60]
test r15, r15
je 0x40c220
mov rcx, r15
call sub.msvcrt.dll_strlen
lea rcx, [rax + rax + 1]
mov edx, 1
call sub.msvcrt.dll_calloc
mov r14, rax
test rax, rax
je 0x40c3a1
movzx eax, byte [r15]
test al, al
je 0x40c3a1
mov qword [rsp + 0x340], r12
mov r11, qword [sym.imp.msvcrt.dll__errno]
xor r10d, r10d
xor esi, esi
xor ecx, ecx
xor r9d, r9d
lea rdx, [rsp + 0xf0]
jmp 0x40bcc8
movsxd rbp, edi
lea ebx, [rdi + 1]
add rbp, r14
cmp al, 0x5c
je 0x40bcd8
mov r8d, r9d
or r8b, cl
jne 0x40bdf0
movsx ecx, al
sub ecx, 0x30
cmp ecx, 9
jbe 0x40be18
xor ecx, ecx
xor r9d, r9d
mov ebx, edi
nop
lea edi, [rbx + 1]
movsxd rbx, ebx
mov byte [r14 + rbx], al
inc esi
movsxd rax, esi
movzx eax, byte [r15 + rax]
test al, al
je 0x40bcf0
cmp al, 0x22
jne 0x40bc80
xor r9d, 1
mov ebx, edi
jmp 0x40bcb0
mov byte [rbp], 0x5c
inc esi
movsxd rax, esi
movzx eax, byte [r15 + rax]
test al, al
jne 0x40bcb0
nop word [rax + rax]
mov r12, qword [rsp + 0x340]
mov qword [rsp + 0x28], rdx
call r11
mov dword [rax], 0
mov rdx, qword [rsp + 0x28]
mov rcx, r14
mov r8, rdx
xor edx, edx
call fcn.006f1c90
mov r15, rax
mov rcx, r14
call sub.msvcrt.dll_free
test r15, r15
je 0x40c3b5
mov rax, qword [0x007a7560]
cmp byte [rax], 0
jne 0x40bfb8
lea rdx, str.result
mov rcx, r15
call fcn.006f2d00
lea rdx, str.error
mov rcx, r15
mov rbx, rax
call fcn.006f2d00
mov r14, rax
test rbx, rbx
je 0x40bfe9
test rax, rax
je 0x40bd81
cmp dword [rax], 7
je 0x40bd81
test byte [rsp + 0x368], 4
je 0x40bff2
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x40bda5
call fcn.006f30f0
mov r8, rax
lea rdx, str.reject_reason
mov rcx, r15
call fcn.006f38b0
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov rcx, r13
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, 0x2f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test cl, cl
je 0x40be40
lea r8d, [rax - 0x2b]
cmp r8b, 0x3a
jbe 0x40be30
mov ecx, edi
sub ecx, r10d
cmp ecx, 4
jg 0x40c233
mov ebx, edi
xor ecx, ecx
jmp 0x40bcb0
xor r9d, r9d
mov r10d, edi
mov ebx, edi
mov ecx, 1
jmp 0x40bcb0
movabs r12, 0x400000004007fed
bt r12, r8
jae 0x40bdfe
mov ebx, edi
jmp 0x40bcb0
mov rax, qword [0x007a7d10]
cmp byte [rax], 0
je 0x40bc20
mov rsi, qword [rsp + 0x90]
test rsi, rsi
je 0x40bc20
mov rax, qword [0x007a72e0]
cmp byte [rax], 0
jne 0x40bc20
mov rax, qword [0x007a71a0]
cmp byte [rax], 0
je 0x40bc20
mov rax, qword [0x007a7300]
cmp byte [rax], 0
jne 0x40bc20
mov rax, qword [0x007a72f0]
mov rdx, qword [0x007a7cb0]
mov byte [rax], 1
mov rax, qword [0x007a7370]
mov ecx, 1
movsxd rax, dword [rax]
lea rax, [rax + rax*2]
shl rax, 5
add rax, qword [rdx]
mov edx, 0x18
mov rbx, qword [rax + 0x20]
call sub.msvcrt.dll_calloc
mov r15, rax
test rax, rax
je 0x40bf34
mov qword [rax], rsi
lea rsi, [rax + 8]
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
lea r14, [rbx + 0x18]
mov rcx, r14
call fcn.006f9420
cmp byte [rbx + 0x10], 0
jne 0x40c3fc
mov rax, qword [rbx + 8]
vmovq xmm2, rbx
vpinsrq xmm0, xmm2, rax, 1
mov qword [rbx + 8], rsi
vmovdqu xmmword [r15 + 8], xmm0
mov qword [rax], rsi
lea rcx, [rbx + 0x20]
call fcn.006fa540
mov rcx, r14
call fcn.006fa350
mov qword [rsp + 0x90], 0
jmp 0x40bc20
mov r8d, 1
mov edx, 0x29
mov rcx, r12
call rbx
jmp 0x40b998
mov r8, r13
lea rdx, str.JSON_protocol_request:_n_s_n
mov ecx, 4
call fcn.0040b1a0
jmp 0x40bb36
lea r8, [0x0040aa90]
mov edx, 0x4eb4
mov rcx, r12
call rbx
jmp 0x40bb16
mov r8d, 1
mov edx, 0x34
mov rcx, r12
call rbx
jmp 0x40ba8f
mov rcx, r15
mov edx, 3
call fcn.006ef880
mov r14, rax
mov r8, rax
lea rdx, str.JSON_protocol_response:_n_s
mov ecx, 4
call fcn.0040b1a0
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x40bd3c
test rax, rax
je 0x40c328
xor edx, edx
mov rcx, r14
call fcn.006ef880
lea rdx, str.message
mov rcx, r14
mov r15, rax
call fcn.006f2d00
lea rdx, str.code
mov rcx, r14
mov rbx, rax
call fcn.006f2d00
cmp qword [rsp + 0x360], 0
mov rsi, rax
je 0x40c03f
mov rcx, rax
call fcn.006f3260
test rax, rax
jne 0x40c3d8
test rbx, rbx
je 0x40c04d
cmp dword [rbx], 2
je 0x40c2a8
mov rax, qword [r14 + 8]
cmp rax, 0xffffffffffffffff
je 0x40c064
dec rax
mov qword [r14 + 8], rax
je 0x40c33c
cmp qword [rsp + 0x360], 0
je 0x40c07b
mov rax, qword [0x007a74e0]
cmp byte [rax], 0
je 0x40c08c
mov r8, r15
lea rdx, str.JSON_RPC_call_failed:__s
xor ecx, ecx
call fcn.0040aeb0
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x90]
xor r15d, r15d
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x98]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0xa0]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov rcx, r13
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 0x40bdd3
mov rax, qword [0x007a7300]
mov rdx, qword [0x007a7cb0]
mov byte [rax], 1
mov rax, qword [0x007a7c90]
mov ecx, 1
movsxd rax, dword [rax]
mov rsi, qword [rsp + 0xa0]
lea rax, [rax + rax*2]
shl rax, 5
add rax, qword [rdx]
mov edx, 0x18
mov rbx, qword [rax + 0x20]
call sub.msvcrt.dll_calloc
mov r15, rax
test rax, rax
je 0x40c18c
mov qword [rax], rsi
lea rsi, [rax + 8]
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
lea r14, [rbx + 0x18]
mov rcx, r14
call fcn.006f9420
cmp byte [rbx + 0x10], 0
jne 0x40c3ef
mov rax, qword [rbx + 8]
vmovq xmm1, rbx
vpinsrq xmm0, xmm1, rax, 1
mov qword [rbx + 8], rsi
vmovdqu xmmword [r15 + 8], xmm0
mov qword [rax], rsi
lea rcx, [rbx + 0x20]
call fcn.006fa540
mov rcx, r14
call fcn.006fa350
mov qword [rsp + 0xa0], 0
jmp 0x40bc10
lea r8, [rsp + 0x5c]
mov edx, 0x200002
mov rcx, r12
call qword [sym.imp.libcurl_4.dll_curl_easy_getinfo]
test esi, esi
je 0x40c1b9
cmp edi, 0x1c
je 0x40c1e2
test byte [rsp + 0x368], 2
je 0x40c1d1
cmp dword [rsp + 0x5c], 0x194
je 0x40c349
mov r8, rbp
lea rdx, str.HTTP_request_failed:__s
xor ecx, ecx
call fcn.0040aeb0
cmp qword [rsp + 0x360], 0
je 0x40c094
test byte [rsp + 0x368], 2
je 0x40c094
cmp dword [rsp + 0x5c], 0x194
jne 0x40c094
mov rax, qword [rsp + 0x360]
mov dword [rax], 0
jmp 0x40c094
lea rdx, str.Empty_data_received_in_json_rpc_call.
xor ecx, ecx
call fcn.0040aeb0
jmp 0x40c094
mov byte [rsp + 0x40], r9b
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x48], rdx
call r11
mov dword [rax], 0
movsxd rcx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov dword [rsp + 0x34], ecx
mov r8d, 0xa
add rcx, r14
mov qword [rsp + 0x28], rdx
call fcn.00723ca0
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x28]
cmp byte [rax], 0
mov r10d, dword [rsp + 0x34]
mov r11, qword [rsp + 0x38]
movzx r9d, byte [rsp + 0x40]
je 0x40c35d
movsxd rax, esi
movzx eax, byte [r15 + rax]
mov ebx, edi
xor ecx, ecx
jmp 0x40bcb0
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, rbx
call fcn.006f3160
mov rcx, rax
call sub.msvcrt.dll__strdup
mov r15, rax
mov rax, qword [0x007a72f0]
cmp byte [rax], 0
je 0x40c04d
test r15, r15
je 0x40c04d
mov ecx, 0x13
lea rdi, str.method_not_getwork
mov rsi, r15
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
jne 0x40c04d
mov rax, qword [r14 + 8]
cmp rax, 0xffffffffffffffff
je 0x40c08c
dec rax
mov qword [r14 + 8], rax
jne 0x40c08c
mov rcx, r14
call fcn.006f3440
jmp 0x40c08c
lea rcx, str._unknown_reason_
call sub.msvcrt.dll__strdup
mov r15, rax
jmp 0x40c064
mov rcx, r14
call fcn.006f3440
jmp 0x40c064
cmp qword [rsp + 0x360], 0
jne 0x40c20d
jmp 0x40c094
mov qword [rsp + 0x40], rdx
mov byte [rsp + 0x38], r9b
mov qword [rsp + 0x28], r11
call r11
cmp dword [rax], 0x22
mov r11, qword [rsp + 0x28]
mov r10d, dword [rsp + 0x34]
movzx r9d, byte [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
jne 0x40c297
movsxd rbx, ebx
mov byte [rbp], 0x2e
add edi, 2
mov byte [r14 + rbx], 0x30
jmp 0x40c297
mov r11, qword [sym.imp.msvcrt.dll__errno]
lea rdx, [rsp + 0xf0]
jmp 0x40bcf8
mov r8d, dword [rsp + 0xf0]
lea r9, [rsp + 0x14c]
lea rdx, str.JSON_decode_failed__d_:__s
xor ecx, ecx
call fcn.0040aeb0
jmp 0x40c094
mov rcx, rsi
call fcn.006f3260
mov rsi, qword [rsp + 0x360]
mov dword [rsi], eax
jmp 0x40c03f
mov rcx, r15
call sub.msvcrt.dll_free
jmp 0x40c17b
mov rcx, r15
call sub.msvcrt.dll_free
jmp 0x40bf23