Function at 0x43fe80
Capabilities:
Receive data
Receive data on socket
Resolve dns

Disassembly:
push rbp
push rdi
push rsi
push rbx
mov eax, 0x4588
call fcn.0041add0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x4530], ecx
mov rax, qword [0x005149a0]
mov eax, dword [rax]
mov word [rbp + 0x44b6], ax
mov qword [rbp + 0x44e8], 0
mov qword [rbp + 0x44d8], 0
mov byte [rbp + 0x44d5], 0
mov ecx, 8
call sym.malloc
mov qword [rbp + 0x44a8], rax
mov rax, qword [rbp + 0x44a8]
mov qword [rax], 0xffffffffffffffff
mov rax, qword [0x00514930]
movzx eax, byte [rax]
xor eax, 1
test al, al
je 0x43ff85
mov rax, qword [0x005149e0]
movzx eax, byte [rax]
test al, al
je 0x43ff71
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x43ff38
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x43ff38
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
cmp eax, 3
jle 0x43ff71
mov rdx, qword [str.___API_will_not_be_available]
lea rax, [rbp - 0x40]
mov r9, rdx
lea r8, str.API_not_running_s
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 4
call dbg._applog
mov rax, qword [rbp + 0x44a8]
mov rcx, rax
call sym.free
jmp 0x44168a
mov edx, 1
mov ecx, 0x10000
call dbg._io_new
mov qword [rbp + 0x44a0], rax
mov r9d, 0x1313
lea r8, global___func__.8
lea rdx, str..._.._cgminer_4.9.1_api.c
lea rcx, [0x00526a08]
call sym._mutex_init
lea rax, [dbg.tidyup]
mov qword [rbp + 0x1c0], rax
mov rax, qword [rbp + 0x44a8]
mov qword [rbp + 0x1c8], rax
call sym.pthread_getclean
mov rax, qword [rax]
mov qword [rbp + 0x1d0], rax
mfence
call sym.pthread_getclean
lea rdx, [rbp + 0x1c0]
mov qword [rax], rdx
mfence
mov eax, dword [rbp + 0x4530]
mov dword [0x00526a00], eax
call dbg.setup_groups
mov rax, qword [0x005148f0]
mov rax, qword [rax]
test rax, rax
je 0x4400a4
call dbg.setup_ipaccess
mov eax, dword [0x00526a28]
test eax, eax
jne 0x4400a4
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x440057
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x440057
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
jle 0x440090
mov rdx, qword [str.___API_will_not_be_available]
lea rax, [rbp - 0x40]
mov r9, rdx
lea r8, str.API_not_running__no_valid_IPs_specified__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 1
call dbg._applog
mov rax, qword [rbp + 0x44a8]
mov rcx, rax
call sym.free
jmp 0x44168a
mov rax, qword [0x00514aa0]
mov eax, dword [rax]
imul eax, eax, 0x3e8
mov ecx, eax
call dbg.cgsleep_ms
movsx edx, word [rbp + 0x44b6]
lea rax, [rbp + 0x41e]
mov r8d, edx
lea rdx, [0x004f9626]
mov rcx, rax
call sym.sprintf
lea rax, [rbp + 0x1e0]
mov r8d, 0x30
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp + 0x1e0], 1
mov dword [rbp + 0x1e4], 0
mov rax, qword [0x00514920]
mov rax, qword [rax]
lea r8, [rbp + 0x1d8]
lea rcx, [rbp + 0x1e0]
lea rdx, [rbp + 0x41e]
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_getaddrinfo]
call rax
test eax, eax
je 0x4401b6
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x440166
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x440166
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
js 0x4401a2
mov rax, qword [0x00514920]
mov rdx, qword [rax]
lea rax, [rbp - 0x40]
mov r9, rdx
lea r8, str.API_failed_to_resolve__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call dbg._applog
mov rax, qword [rbp + 0x44a8]
mov rcx, rax
call sym.free
jmp 0x44168a
mov rax, qword [rbp + 0x1d8]
mov qword [rbp + 0x44c8], rax
jmp 0x440211
mov rax, qword [rbp + 0x1d8]
mov eax, dword [rax + 4]
mov r8d, 0
mov edx, 1
mov ecx, eax
mov rax, qword [sym.imp.WSOCK32.dll_socket]
call rax
mov rdx, qword [rbp + 0x44a8]
mov qword [rdx], rax
mov rax, qword [rbp + 0x44a8]
mov rax, qword [rax]
test rax, rax
jne 0x44021d
mov rax, qword [rbp + 0x44c8]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x44c8], rax
cmp qword [rbp + 0x44c8], 0
jne 0x4401c6
jmp 0x44021e
nop
mov rax, qword [rbp + 0x44a8]
mov rax, qword [rax]
cmp rax, 0xffffffffffffffff
jne 0x4402c8
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x44025b
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x44025b
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
js 0x4402a1
mov rbx, qword [str.___API_will_not_be_available]
call dbg.WSAErrorMsg
mov rdx, rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rbx
mov r9, rdx
lea r8, str.API_initialisation_failed___s__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call dbg._applog
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
call rax
mov rax, qword [rbp + 0x44a8]
mov rcx, rax
call sym.free
jmp 0x44168a
mov dword [rbp + 0x44fc], 0
mov ecx, 0
call sym.time_1
mov qword [rbp + 0x4498], rax
jmp 0x4403c1
mov rax, qword [rbp + 0x44c8]
mov rax, qword [rax + 0x10]
mov ecx, eax
mov rax, qword [rbp + 0x44c8]
mov rdx, qword [rax + 0x20]
mov rax, qword [rbp + 0x44a8]
mov rax, qword [rax]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_bind]
call rax
cmp eax, 0xffffffff
jne 0x4403b7
call dbg.WSAErrorMsg
mov qword [rbp + 0x44f0], rax
mov ecx, 0
call sym.time_1
sub rax, qword [rbp + 0x4498]
cmp rax, 0x3d
jg 0x4403d0
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x440372
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x440372
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
jle 0x4403ab
movsx edx, word [rbp + 0x44b6]
lea rax, [rbp - 0x40]
mov r9d, edx
lea r8, str.API_bind_to_port__d_failed___trying_again_in_30sec
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 1
call dbg._applog
mov ecx, 0x7530
call dbg.cgsleep_ms
jmp 0x4403c1
mov dword [rbp + 0x44fc], 1
cmp dword [rbp + 0x44fc], 0
je 0x4402e8
jmp 0x4403d1
nop
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
call rax
cmp dword [rbp + 0x44fc], 0
jne 0x44047f
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x44041a
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x44041a
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
js 0x44046b
mov rdx, qword [str.___API_will_not_be_available]
movsx ecx, word [rbp + 0x44b6]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x44f0]
mov qword [rsp + 0x20], rdx
mov r9d, ecx
lea r8, str.API_bind_to_port__d_failed___s__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call dbg._applog
mov rax, qword [rbp + 0x44a8]
mov rcx, rax
call sym.free
jmp 0x44168a
mov rax, qword [rbp + 0x44a8]
mov rax, qword [rax]
mov edx, 0x64
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_listen]
call rax
cmp eax, 0xffffffff
jne 0x44053c
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x4404cc
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x4404cc
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
js 0x440512
mov rbx, qword [str.___API_will_not_be_available]
call dbg.WSAErrorMsg
mov rdx, rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rbx
mov r9, rdx
lea r8, str.API3_initialisation_failed___s__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call dbg._applog
mov rax, qword [rbp + 0x44a8]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, qword [rbp + 0x44a8]
mov rcx, rax
call sym.free
jmp 0x44168a
mov rax, qword [0x005148f0]
mov rax, qword [rax]
test rax, rax
je 0x4405c6
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x440578
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x440578
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
jle 0x4406be
mov rax, qword [rbp + 0x44a8]
mov rax, qword [rax]
mov ecx, eax
movsx edx, word [rbp + 0x44b6]
lea rax, [rbp - 0x40]
mov dword [rsp + 0x20], ecx
mov r9d, edx
lea r8, str.API_running_in_IP_access_mode_on_port__d___d_
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 1
call dbg._applog
jmp 0x4406be
mov rax, qword [0x00514990]
movzx eax, byte [rax]
test al, al
je 0x44064c
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x440601
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x440601
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
jle 0x4406be
mov rax, qword [rbp + 0x44a8]
mov rax, qword [rax]
mov ecx, eax
movsx edx, word [rbp + 0x44b6]
lea rax, [rbp - 0x40]
mov dword [rsp + 0x20], ecx
mov r9d, edx
lea r8, str.API_running_in_UNRESTRICTED_read_access_mode_on_port__d___d_
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 1
call dbg._applog
jmp 0x4406be
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x440675
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x440675
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
jle 0x4406be
mov rax, qword [rbp + 0x44a8]
mov rax, qword [rax]
mov ecx, eax
movsx edx, word [rbp + 0x44b6]
lea rax, [rbp - 0x40]
mov dword [rsp + 0x20], ecx
mov r9d, edx
lea r8, str.API_running_in_local_read_access_mode_on_port__d___d_
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 1
call dbg._applog
mov rax, qword [0x00514940]
movzx eax, byte [rax]
test al, al
je 0x4406d1
call dbg.mcast_init
mov dword [rsp + 0x38], 0x1377
lea rax, global___func__.8
mov qword [rsp + 0x30], rax
lea rax, str..._.._cgminer_4.9.1_api.c
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 2
mov edx, 0x18
lea rcx, str.StrBufs
call dbg._k_new_list
mov qword [0x00526a38], rax
jmp 0x4413fe
mov dword [rbp + 0x38c], pe_nt_image_headers64
mov rax, qword [rbp + 0x44a8]
mov rax, qword [rax]
lea rcx, [rbp + 0x38c]
lea rdx, [rbp + 0x390]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_accept]
call rax
mov qword [rbp + 0x4490], rax
mov rax, qword [rbp + 0x4490]
cmp eax, 0xffffffff
jne 0x4407f2
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x440797
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x440797
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
js 0x441412
mov rax, qword [rbp + 0x44a8]
mov rax, qword [rax]
mov esi, eax
mov rbx, qword [str.___API_will_not_be_available]
call dbg.WSAErrorMsg
mov rdx, rax
lea rax, [rbp - 0x40]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
mov r9, rdx
lea r8, str.API_failed___s__s___d_
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call dbg._applog
jmp 0x441412
lea rcx, [rbp + 0x31f]
lea rdx, [rbp + 0x428]
lea rax, [rbp + 0x390]
mov r8, rcx
mov rcx, rax
call dbg.check_connect
mov byte [rbp + 0x448f], al
mov rax, qword [0x005149e0]
movzx eax, byte [rax]
test al, al
je 0x4408a4
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x440850
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x440850
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
cmp eax, 3
jle 0x4408a4
cmp byte [rbp + 0x448f], 0
je 0x440862
lea rax, str.Accepted
jmp 0x440869
lea rax, str.Ignored
mov rdx, qword [rbp + 0x428]
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, rdx
lea r8, str.API:_connection_from__s____s
mov edx, 0x200
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 4
call dbg._applog
cmp byte [rbp + 0x448f], 0
je 0x4413eb
lea rdx, [rbp + 0x2430]
mov rax, qword [rbp + 0x4490]
mov r9d, 0
mov r8d, 0x1fff
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_recv]
call rax
mov dword [rbp + 0x4488], eax
cmp dword [rbp + 0x4488], 0xffffffff
jne 0x4408ef
mov byte [rbp + 0x2430], 0
jmp 0x4408ff
mov eax, dword [rbp + 0x4488]
cdqe
mov byte [rbp + rax + 0x2430], 0
mov rax, qword [0x005149e0]
movzx eax, byte [rax]
test al, al
je 0x440a12
cmp dword [rbp + 0x4488], 0xffffffff
jne 0x440996
mov rax, qword [0x005149e0]
movzx eax, byte [rax]
test al, al
je 0x440a12
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x44095a
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x44095a
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
cmp eax, 3
jle 0x440a12
call dbg.WSAErrorMsg
mov rdx, rax
lea rax, [rbp - 0x40]
mov r9, rdx
lea r8, str.API:_recv_failed:__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 4
call dbg._applog
jmp 0x440a12
mov rax, qword [0x005149e0]
movzx eax, byte [rax]
test al, al
je 0x440a12
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x4409ce
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x4409ce
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
cmp eax, 3
jle 0x440a12
mov ecx, dword [rbp + 0x4488]
lea rax, [rbp - 0x40]
lea rdx, [rbp + 0x2430]
mov qword [rsp + 0x20], rdx
mov r9d, ecx
lea r8, str.API:_recv_command:___d___s
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 4
call dbg._applog
cmp dword [rbp + 0x4488], 0xffffffff
je 0x4413eb
mov ecx, 0
call sym.time_1
mov qword [0x00526a18], rax
mov rax, qword [rbp + 0x44a0]
mov rcx, rax
call dbg.io_reinit
mov byte [rbp + 0x44d6], 0
movzx eax, byte [rbp + 0x2430]
mov edx, 0x7b
cmp al, dl
je 0x440aad
mov byte [rbp + 0x44d7], 0
mov eax, 0x7c
movsx edx, al
lea rax, [rbp + 0x2430]
mov rcx, rax
call sym.strchr
mov qword [rbp + 0x44e0], rax
cmp qword [rbp + 0x44e0], 0
je 0x440a9a
mov rax, qword [rbp + 0x44e0]
lea rdx, [rax + 1]
mov qword [rbp + 0x44e0], rdx
mov byte [rax], 0
lea rax, [rbp + 0x2430]
mov qword [rbp + 0x44e8], rax
jmp 0x440d63
mov byte [rbp + 0x44d7], 1
mov qword [rbp + 0x44e0], 0
mov eax, dword [rbp + 0x4488]
movsxd rdx, eax
lea rcx, [rbp + 0x220]
lea rax, [rbp + 0x2430]
mov r9, rcx
mov r8d, 0
mov rcx, rax
call sym.json_loadb
mov qword [rbp + 0x44d8], rax
cmp qword [rbp + 0x44d8], 0
je 0x440b05
mov rax, qword [rbp + 0x44d8]
mov eax, dword [rax]
test eax, eax
je 0x440b5c
movzx edx, byte [rbp + 0x44d7]
mov rax, qword [rbp + 0x44a0]
mov dword [rsp + 0x20], edx
mov r9d, 0
mov r8d, 0
mov edx, 0x17
mov rcx, rax
call dbg.message
movzx ecx, byte [rbp + 0x44d7]
mov rdx, qword [rbp + 0x4490]
mov rax, qword [rbp + 0x44a0]
mov r8d, ecx
mov rcx, rax
call dbg.send_result
mov byte [rbp + 0x44d6], 1
jmp 0x440d63
mov rdx, qword [0x004ee620]
mov rax, qword [rbp + 0x44d8]
mov rcx, rax
call sym.json_object_get
mov qword [rbp + 0x4480], rax
cmp qword [rbp + 0x4480], 0
jne 0x440bda
movzx edx, byte [rbp + 0x44d7]
mov rax, qword [rbp + 0x44a0]
mov dword [rsp + 0x20], edx
mov r9d, 0
mov r8d, 0
mov edx, 0x18
mov rcx, rax
call dbg.message
movzx ecx, byte [rbp + 0x44d7]
mov rdx, qword [rbp + 0x4490]
mov rax, qword [rbp + 0x44a0]
mov r8d, ecx
mov rcx, rax
call dbg.send_result
mov byte [rbp + 0x44d6], 1
jmp 0x440d63
cmp qword [rbp + 0x4480], 0
je 0x440bf2
mov rax, qword [rbp + 0x4480]
mov eax, dword [rax]
cmp eax, 2
je 0x440c49
movzx edx, byte [rbp + 0x44d7]
mov rax, qword [rbp + 0x44a0]
mov dword [rsp + 0x20], edx
mov r9d, 0
mov r8d, 0
mov edx, 0xe
mov rcx, rax
call dbg.message
movzx ecx, byte [rbp + 0x44d7]
mov rdx, qword [rbp + 0x4490]
mov rax, qword [rbp + 0x44a0]
mov r8d, ecx
mov rcx, rax
call dbg.send_result
mov byte [rbp + 0x44d6], 1
jmp 0x440d63
mov rax, qword [rbp + 0x4480]
mov rcx, rax
call sym.json_string_value
mov qword [rbp + 0x44e8], rax
mov rdx, qword [str.parameter]
mov rax, qword [rbp + 0x44d8]
mov rcx, rax
call sym.json_object_get
mov qword [rbp + 0x4480], rax
cmp qword [rbp + 0x4480], 0
je 0x440caf
mov rax, qword [rbp + 0x4480]
mov eax, dword [rax]
cmp eax, 2
jne 0x440caf
mov rax, qword [rbp + 0x4480]
mov rcx, rax
call sym.json_string_value
mov qword [rbp + 0x44e0], rax
jmp 0x440d63
cmp qword [rbp + 0x4480], 0
je 0x440d01
mov rax, qword [rbp + 0x4480]
mov eax, dword [rax]
cmp eax, 3
jne 0x440d01
mov rax, qword [rbp + 0x4480]
mov rcx, rax
call sym.json_integer_value
mov edx, eax
lea rax, [rbp + 0x430]
mov r8d, edx
lea rdx, [0x004f9626]
mov rcx, rax
call sym.sprintf
lea rax, [rbp + 0x430]
mov qword [rbp + 0x44e0], rax
jmp 0x440d63
cmp qword [rbp + 0x4480], 0
je 0x440d63
mov rax, qword [rbp + 0x4480]
mov eax, dword [rax]
cmp eax, 4
jne 0x440d63
mov rax, qword [rbp + 0x4480]
mov rcx, rax
call sym.json_real_value
movq rax, xmm0
mov rdx, rax
movq xmm0, rdx
mov rdx, rax
lea rax, [rbp + 0x430]
movapd xmm2, xmm0
mov r8, rdx
lea rdx, [0x004f9640]
mov rcx, rax
call sym.sprintf
lea rax, [rbp + 0x430]
mov qword [rbp + 0x44e0], rax
movzx eax, byte [rbp + 0x44d6]
xor eax, 1
test al, al
je 0x441393
mov qword [rbp + 0x44b8], 0
mov rax, qword [rbp + 0x44e8]
mov edx, 0x2b
mov rcx, rax
call sym.strchr
test rax, rax
je 0x440e4a
mov byte [rbp + 0x44d5], 1
movzx eax, byte [rbp + 0x44d5]
mov byte [rbp + 0x21f], al
mov rax, qword [rbp + 0x44e8]
mov rcx, rax
call sym.strlen
add rax, 3
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x44b8], rax
cmp qword [rbp + 0x44b8], 0
jne 0x440e31
lea rax, [rbp - 0x40]
mov dword [rsp + 0x28], 0x13cf
lea rdx, global___func__.8
mov qword [rsp + 0x20], rdx
lea r9, str..._.._cgminer_4.9.1_api.c
lea r8, str.OOM_cmdsbuf_in__s__s__:_d
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 1
mov rdx, rax
mov ecx, 0
call dbg._applog
mov ecx, 1
call dbg._quit
mov rax, qword [rbp + 0x44b8]
mov word [rax], 0x7c
mov qword [rbp + 0x44e0], 0
jmp 0x440e5e
mov byte [rbp + 0x44d5], 0
movzx eax, byte [rbp + 0x44d5]
mov byte [rbp + 0x21f], al
mov rax, qword [rbp + 0x44e8]
mov qword [rbp + 0x44c0], rax
mov byte [rbp + 0x44d6], 0
cmp byte [rbp + 0x44d5], 0
je 0x440ec8
mov rax, qword [rbp + 0x44c0]
mov edx, 0x2b
mov rcx, rax
call sym.strchr
mov qword [rbp + 0x44e8], rax
cmp qword [rbp + 0x44e8], 0
je 0x440eb6
mov rax, qword [rbp + 0x44e8]
lea rdx, [rax + 1]
mov qword [rbp + 0x44e8], rdx
mov byte [rax], 0
mov rax, qword [rbp + 0x44c0]
movzx eax, byte [rax]
test al, al
je 0x441361
mov dword [rbp + 0x44d0], 0
jmp 0x441281
mov eax, dword [rbp + 0x44d0]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
mov rdx, rax
lea rax, [0x004eee40]
mov rdx, qword [rdx + rax]
mov rax, qword [rbp + 0x44c0]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x44127a
mov rdx, qword [rbp + 0x44c0]
lea rax, [rbp + 0x320]
mov r8, rdx
lea rdx, [0x004fa298]
mov rcx, rax
call sym.sprintf
cmp byte [rbp + 0x44d5], 0
je 0x441073
lea rdx, [rbp + 0x320]
mov rax, qword [rbp + 0x44b8]
mov rcx, rax
call sym.strstr
test rax, rax
je 0x440f66
mov byte [rbp + 0x44d6], 1
jmp 0x4412ae
mov rdx, qword [rbp + 0x44c0]
mov rax, qword [rbp + 0x44b8]
mov rcx, rax
call sym.strcat
mov rax, qword [rbp + 0x44b8]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x44b8]
add rax, rdx
mov word [rax], 0x7c
movzx ecx, byte [rbp + 0x44d7]
lea r8, [rbp + 0x21f]
mov rdx, qword [rbp + 0x44c0]
mov rax, qword [rbp + 0x44a0]
mov r9, r8
mov r8d, ecx
mov rcx, rax
call dbg.head_join
mov eax, dword [rbp + 0x44d0]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
mov rdx, rax
lea rax, [0x004eee51]
movzx eax, byte [rdx + rax]
xor eax, 1
test al, al
je 0x441073
movzx ecx, byte [rbp + 0x44d7]
mov eax, dword [rbp + 0x44d0]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
mov rdx, rax
lea rax, [0x004eee40]
mov rdx, qword [rdx + rax]
mov rax, qword [rbp + 0x44a0]
mov dword [rsp + 0x20], ecx
mov r9, rdx
mov r8d, 0
mov edx, 0x2d
mov rcx, rax
call dbg.message
mov byte [rbp + 0x44d6], 1
movzx edx, byte [rbp + 0x44d7]
mov rax, qword [rbp + 0x44a0]
mov rcx, rax
call dbg.tail_join
jmp 0x4412ae
movzx eax, byte [rbp + 0x31f]
movsx eax, al
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll_toupper]
call rax
mov ebx, eax
mov ecx, 0x57
mov rax, qword [sym.imp.msvcrt.dll_toupper]
call rax
cmp ebx, eax
je 0x4410e7
movzx eax, byte [rbp + 0x31f]
movsx eax, al
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll_toupper]
call rax
mov ebx, eax
mov ecx, 0x41
mov rax, qword [sym.imp.msvcrt.dll_toupper]
call rax
sub ebx, eax
mov edx, ebx
lea rax, [0x0052bd80]
movsxd rdx, edx
mov rax, qword [rax + rdx*8]
lea rdx, [rbp + 0x320]
mov rcx, rax
call sym.strstr
test rax, rax
je 0x441141
mov eax, dword [rbp + 0x44d0]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
mov rdx, rax
lea rax, dbg.apiversion
mov r10, qword [rdx + rax]
movzx eax, byte [rbp + 0x31f]
movsx ecx, al
movzx r9d, byte [rbp + 0x44d7]
mov r8, qword [rbp + 0x44e0]
mov rdx, qword [rbp + 0x4490]
mov rax, qword [rbp + 0x44a0]
mov dword [rsp + 0x20], ecx
mov rcx, rax
call r10
jmp 0x44122b
movzx ecx, byte [rbp + 0x44d7]
mov eax, dword [rbp + 0x44d0]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
mov rdx, rax
lea rax, [0x004eee40]
mov rdx, qword [rdx + rax]
mov rax, qword [rbp + 0x44a0]
mov dword [rsp + 0x20], ecx
mov r9, rdx
mov r8d, 0
mov edx, 0x2d
mov rcx, rax
call dbg.message
mov rax, qword [0x005149e0]
movzx eax, byte [rax]
test al, al
je 0x44122b
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x4411c9
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x4411c9
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
cmp eax, 3
jle 0x44122b
mov eax, dword [rbp + 0x44d0]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
mov rdx, rax
lea rax, [0x004eee40]
mov rdx, qword [rdx + rax]
mov rcx, qword [rbp + 0x428]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str.API:_access_denied_to__s_for__s_command
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 4
call dbg._applog
mov byte [rbp + 0x44d6], 1
movzx eax, byte [rbp + 0x44d5]
xor eax, 1
test al, al
je 0x441262
movzx ecx, byte [rbp + 0x44d7]
mov rdx, qword [rbp + 0x4490]
mov rax, qword [rbp + 0x44a0]
mov r8d, ecx
mov rcx, rax
call dbg.send_result
jmp 0x4412ae
movzx edx, byte [rbp + 0x44d7]
mov rax, qword [rbp + 0x44a0]
mov rcx, rax
call dbg.tail_join
jmp 0x4412ae
add dword [rbp + 0x44d0], 1
mov eax, dword [rbp + 0x44d0]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
mov rdx, rax
lea rax, [0x004eee40]
mov rax, qword [rdx + rax]
test rax, rax
jne 0x440ed7
movzx eax, byte [rbp + 0x44d6]
xor eax, 1
test al, al
je 0x441364
cmp byte [rbp + 0x44d5], 0
je 0x4412f3
movzx ecx, byte [rbp + 0x44d7]
lea r8, [rbp + 0x21f]
mov rdx, qword [rbp + 0x44c0]
mov rax, qword [rbp + 0x44a0]
mov r9, r8
mov r8d, ecx
mov rcx, rax
call dbg.head_join
movzx edx, byte [rbp + 0x44d7]
mov rax, qword [rbp + 0x44a0]
mov dword [rsp + 0x20], edx
mov r9d, 0
mov r8d, 0
mov edx, 0xe
mov rcx, rax
call dbg.message
cmp byte [rbp + 0x44d5], 0
je 0x44133f
movzx edx, byte [rbp + 0x44d7]
mov rax, qword [rbp + 0x44a0]
mov rcx, rax
call dbg.tail_join
jmp 0x441365
movzx ecx, byte [rbp + 0x44d7]
mov rdx, qword [rbp + 0x4490]
mov rax, qword [rbp + 0x44a0]
mov r8d, ecx
mov rcx, rax
call dbg.send_result
jmp 0x441365
nop
jmp 0x441365
nop
cmp byte [rbp + 0x44d5], 0
je 0x44137c
mov rax, qword [rbp + 0x44e8]
mov qword [rbp + 0x44c0], rax
cmp byte [rbp + 0x44d5], 0
je 0x441393
cmp qword [rbp + 0x44c0], 0
jne 0x440e6c
cmp byte [rbp + 0x44d5], 0
je 0x4413bc
movzx ecx, byte [rbp + 0x44d7]
mov rdx, qword [rbp + 0x4490]
mov rax, qword [rbp + 0x44a0]
mov r8d, ecx
mov rcx, rax
call dbg.send_result
cmp byte [rbp + 0x44d7], 0
je 0x4413eb
cmp qword [rbp + 0x44d8], 0
je 0x4413eb
mov rax, qword [rbp + 0x44d8]
mov eax, dword [rax]
test eax, eax
jne 0x4413eb
mov rax, qword [rbp + 0x44d8]
mov rcx, rax
call sym.json_decref_4
mov rax, qword [rbp + 0x4490]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
movzx eax, byte [0x00526a04]
xor eax, 1
test al, al
jne 0x440722
jmp 0x441413
nop
call sym.pthread_getclean
mov rdx, qword [rbp + 0x1d0]
mov qword [rax], rdx
mov rdx, qword [rbp + 0x1c0]
mov rax, qword [rbp + 0x1c8]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x44a8]
mov rcx, rax
call sym.free
mov rax, qword [0x005149e0]
movzx eax, byte [rax]
test al, al
je 0x441504
mov rax, qword [0x005149e0]
movzx eax, byte [rax]
test al, al
je 0x441504
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x441492
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x441492
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
cmp eax, 3
jle 0x441504
movzx eax, byte [0x00526a10]
test al, al
je 0x4414a6
lea rax, str.QUIT
jmp 0x4414d5
movzx eax, byte [0x00526a11]
test al, al
je 0x4414ba
lea rax, str.RESTART
jmp 0x4414d5
movzx eax, byte [0x00526a04]
test al, al
je 0x4414ce
lea rax, [0x004f9b09]
jmp 0x4414d5
lea rax, str.UNKNOWN_
lea rcx, [rbp - 0x40]
mov r9, rax
lea r8, str.API:_terminating_due_to:__s
mov edx, 0x200
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
mov ecx, 4
call dbg._applog
mov r9d, 0x1428
lea r8, global___func__.8
lea rdx, str..._.._cgminer_4.9.1_api.c
lea rcx, [0x00526a08]
call sym._mutex_lock_1
movzx eax, byte [0x00526a11]
test al, al
je 0x4415c9
lea rdx, [rbp + 0x4430]
lea rax, [rbp + 0x4430]
mov r9, rdx
lea r8, [sym.restart_thread]
mov edx, 0
mov rcx, rax
call dbg.thr_info_create
test eax, eax
je 0x4415b5
mov r9d, 0x142c
lea r8, global___func__.8
lea rdx, str..._.._cgminer_4.9.1_api.c
lea rcx, [0x00526a08]
call sym._mutex_unlock_1
lea rax, [rbp - 0x40]
lea r8, str.API_failed_to_initiate_a_restart___aborting
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 1
mov rdx, rax
mov ecx, 0
call dbg._applog
mov ecx, 1
call dbg._quit
mov rax, qword [rbp + 0x4440]
mov rcx, rax
call sym.pthread_detach
jmp 0x441669
movzx eax, byte [0x00526a10]
test al, al
je 0x441669
lea rdx, [rbp + 0x4430]
lea rax, [rbp + 0x4430]
mov r9, rdx
lea r8, [dbg.quit_thread]
mov edx, 0
mov rcx, rax
call dbg.thr_info_create
test eax, eax
je 0x44165a
mov r9d, 0x1432
lea r8, global___func__.8
lea rdx, str..._.._cgminer_4.9.1_api.c
lea rcx, [0x00526a08]
call sym._mutex_unlock_1
lea rax, [rbp - 0x40]
lea r8, str.API_failed_to_initiate_a_clean_quit___aborting
mov edx, 0x200
mov rcx, rax
call sym.snprintf_2
lea rax, [rbp - 0x40]
mov r8d, 1
mov rdx, rax
mov ecx, 0
call dbg._applog
mov ecx, 1
call dbg._quit
mov rax, qword [rbp + 0x4440]
mov rcx, rax
call sym.pthread_detach
mov r9d, 0x1438
lea r8, global___func__.8
lea rdx, str..._.._cgminer_4.9.1_api.c
lea rcx, [0x00526a08]
call sym._mutex_unlock_1
nop
add rsp, 0x4588
pop rbx
pop rsi
pop rdi
pop rbp
ret