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

Disassembly:
push rbp
push rsi
push rbx
mov eax, 0x4580
call fcn.14001a810
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x4520], ecx
mov rax, qword [0x14011bd00]
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 [0x14011bc90]
movzx eax, byte [rax]
xor eax, 1
test al, al
je 0x140045424
mov rax, qword [0x14011bd40]
movzx eax, byte [rax]
test al, al
je 0x140045410
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x1400453d7
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x1400453d7
mov rax, qword [0x14011be10]
mov eax, dword [rax]
cmp eax, 3
jle 0x140045410
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 0x140046b3a
mov edx, 1
mov ecx, 0x10000
call dbg._io_new
mov qword [rbp + 0x44a0], rax
mov r9d, 0x1313
lea r8, global___func__.91
lea rax, str..._.._cgminer_4.9.1_api.c
mov rdx, rax
lea rax, [0x14012ea08]
mov rcx, rax
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
lock or qword [rsp], 0
call sym.pthread_getclean
lea rdx, [rbp + 0x1c0]
mov qword [rax], rdx
lock or qword [rsp], 0
mov eax, dword [rbp + 0x4520]
mov dword [0x14012ea00], eax
call dbg.setup_groups
mov rax, qword [0x14011bc50]
mov rax, qword [rax]
test rax, rax
je 0x14004554f
call dbg.setup_ipaccess
mov eax, dword [0x14012ea28]
test eax, eax
jne 0x14004554f
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140045502
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140045502
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
jle 0x14004553b
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 0x140046b3a
mov rax, qword [0x14011be00]
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, [0x140100626]
mov rcx, rax
call sym.sprintf_1
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 [0x14011bc80]
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 0x140045661
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140045611
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140045611
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
js 0x14004564d
mov rax, qword [0x14011bc80]
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 0x140046b3a
mov rax, qword [rbp + 0x1d8]
mov qword [rbp + 0x44c8], rax
jmp 0x1400456bc
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 0x1400456c8
mov rax, qword [rbp + 0x44c8]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x44c8], rax
cmp qword [rbp + 0x44c8], 0
jne 0x140045671
jmp 0x1400456c9
nop
mov rax, qword [rbp + 0x44a8]
mov rax, qword [rax]
cmp rax, 0xffffffffffffffff
jne 0x140045773
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140045706
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140045706
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
js 0x14004574c
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 0x140046b3a
mov dword [rbp + 0x44fc], 0
mov ecx, 0
call sub.msvcrt.dll__time64
mov qword [rbp + 0x4498], rax
jmp 0x14004586c
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 0x140045862
call dbg.WSAErrorMsg
mov qword [rbp + 0x44f0], rax
mov ecx, 0
call sub.msvcrt.dll__time64
sub rax, qword [rbp + 0x4498]
cmp rax, 0x3d
jg 0x14004587b
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x14004581d
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x14004581d
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
jle 0x140045856
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 0x14004586c
mov dword [rbp + 0x44fc], 1
cmp dword [rbp + 0x44fc], 0
je 0x140045793
jmp 0x14004587c
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 0x14004592a
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x1400458c5
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x1400458c5
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
js 0x140045916
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 0x140046b3a
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 0x1400459e7
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140045977
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140045977
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
js 0x1400459bd
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 0x140046b3a
mov rax, qword [0x14011bc50]
mov rax, qword [rax]
test rax, rax
je 0x140045a71
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140045a23
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140045a23
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
jle 0x140045b69
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 0x140045b69
mov rax, qword [0x14011bcf0]
movzx eax, byte [rax]
test al, al
je 0x140045af7
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140045aac
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140045aac
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
jle 0x140045b69
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 0x140045b69
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140045b20
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140045b20
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
jle 0x140045b69
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 [0x14011bca0]
movzx eax, byte [rax]
test al, al
je 0x140045b7c
call dbg.mcast_init
mov dword [rsp + 0x38], 0x1377
lea rax, global___func__.91
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 rax, str.StrBufs
mov rcx, rax
call dbg._k_new_list
mov qword [0x14012ea38], rax
jmp 0x140046896
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 0x140045ca0
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140045c45
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140045c45
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
js 0x1400468aa
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 0x1400468aa
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 [0x14011bd40]
movzx eax, byte [rax]
test al, al
je 0x140045d52
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140045cfe
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140045cfe
mov rax, qword [0x14011be10]
mov eax, dword [rax]
cmp eax, 3
jle 0x140045d52
cmp byte [rbp + 0x448f], 0
je 0x140045d10
lea rax, str.Accepted
jmp 0x140045d17
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 0x140046883
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 0x140045d9d
mov byte [rbp + 0x2430], 0
jmp 0x140045dad
mov eax, dword [rbp + 0x4488]
cdqe
mov byte [rbp + rax + 0x2430], 0
mov rax, qword [0x14011bd40]
movzx eax, byte [rax]
test al, al
je 0x140045ec0
cmp dword [rbp + 0x4488], 0xffffffff
jne 0x140045e44
mov rax, qword [0x14011bd40]
movzx eax, byte [rax]
test al, al
je 0x140045ec0
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140045e08
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140045e08
mov rax, qword [0x14011be10]
mov eax, dword [rax]
cmp eax, 3
jle 0x140045ec0
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 0x140045ec0
mov rax, qword [0x14011bd40]
movzx eax, byte [rax]
test al, al
je 0x140045ec0
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140045e7c
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140045e7c
mov rax, qword [0x14011be10]
mov eax, dword [rax]
cmp eax, 3
jle 0x140045ec0
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 0x140046883
mov ecx, 0
call sub.msvcrt.dll__time64
mov qword [0x14012ea18], 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 0x140045f5b
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 0x140045f48
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 0x14004620e
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 0x140045fb3
mov rax, qword [rbp + 0x44d8]
mov eax, dword [rax]
test eax, eax
je 0x14004600a
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 0x14004620e
mov rdx, qword [0x1400f5600]
mov rax, qword [rbp + 0x44d8]
mov rcx, rax
call sym.json_object_get
mov qword [rbp + 0x4480], rax
cmp qword [rbp + 0x4480], 0
jne 0x140046088
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 0x14004620e
cmp qword [rbp + 0x4480], 0
je 0x1400460a0
mov rax, qword [rbp + 0x4480]
mov eax, dword [rax]
cmp eax, 2
je 0x1400460f7
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 0x14004620e
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 0x14004615d
mov rax, qword [rbp + 0x4480]
mov eax, dword [rax]
cmp eax, 2
jne 0x14004615d
mov rax, qword [rbp + 0x4480]
mov rcx, rax
call sym.json_string_value
mov qword [rbp + 0x44e0], rax
jmp 0x14004620e
cmp qword [rbp + 0x4480], 0
je 0x1400461af
mov rax, qword [rbp + 0x4480]
mov eax, dword [rax]
cmp eax, 3
jne 0x1400461af
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, [0x140100626]
mov rcx, rax
call sym.sprintf_1
lea rax, [rbp + 0x430]
mov qword [rbp + 0x44e0], rax
jmp 0x14004620e
cmp qword [rbp + 0x4480], 0
je 0x14004620e
mov rax, qword [rbp + 0x4480]
mov eax, dword [rax]
cmp eax, 4
jne 0x14004620e
mov rax, qword [rbp + 0x4480]
mov rcx, rax
call sym.json_real_value
movapd xmm1, xmm0
movapd xmm0, xmm1
movq rdx, xmm1
lea rax, [rbp + 0x430]
movapd xmm2, xmm0
mov r8, rdx
lea rdx, [0x14010063e]
mov rcx, rax
call sym.sprintf_1
lea rax, [rbp + 0x430]
mov qword [rbp + 0x44e0], rax
movzx eax, byte [rbp + 0x44d6]
xor eax, 1
test al, al
je 0x14004682b
mov qword [rbp + 0x44b8], 0
mov rax, qword [rbp + 0x44e8]
mov edx, 0x2b
mov rcx, rax
call sym.strchr
test rax, rax
je 0x1400462f5
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 0x1400462dc
lea rax, [rbp - 0x40]
mov dword [rsp + 0x28], 0x13cf
lea rdx, global___func__.91
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 0x140046309
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 0x140046373
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 0x140046361
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 0x1400467f9
mov dword [rbp + 0x44d0], 0
jmp 0x140046719
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, [0x1400f5e20]
mov rdx, qword [rdx + rax]
mov rax, qword [rbp + 0x44c0]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140046712
mov rdx, qword [rbp + 0x44c0]
lea rax, [rbp + 0x320]
mov r8, rdx
lea rdx, [0x140101288]
mov rcx, rax
call sym.sprintf_1
cmp byte [rbp + 0x44d5], 0
je 0x14004650b
lea rdx, [rbp + 0x320]
mov rax, qword [rbp + 0x44b8]
mov rcx, rax
call sym.strstr
test rax, rax
je 0x140046411
mov byte [rbp + 0x44d6], 1
jmp 0x140046746
mov rdx, qword [rbp + 0x44c0]
mov rax, qword [rbp + 0x44b8]
mov rcx, rax
call sym.strcat
mov rax, qword [rbp + 0x44b8]
mov rcx, rax
call sym.strlen
mov rdx, rax
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, [0x1400f5e31]
movzx eax, byte [rdx + rax]
xor eax, 1
test al, al
je 0x14004650b
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, [0x1400f5e20]
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 0x140046746
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 0x14004657f
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, [0x140133540]
movsxd rdx, edx
mov rax, qword [rax + rdx*8]
lea rdx, [rbp + 0x320]
mov rcx, rax
call sym.strstr
test rax, rax
je 0x1400465d9
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 0x1400466c3
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, [0x1400f5e20]
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 [0x14011bd40]
movzx eax, byte [rax]
test al, al
je 0x1400466c3
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140046661
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140046661
mov rax, qword [0x14011be10]
mov eax, dword [rax]
cmp eax, 3
jle 0x1400466c3
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, [0x1400f5e20]
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 0x1400466fa
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 0x140046746
movzx edx, byte [rbp + 0x44d7]
mov rax, qword [rbp + 0x44a0]
mov rcx, rax
call dbg.tail_join
jmp 0x140046746
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, [0x1400f5e20]
mov rax, qword [rdx + rax]
test rax, rax
jne 0x140046382
movzx eax, byte [rbp + 0x44d6]
xor eax, 1
test al, al
je 0x1400467fc
cmp byte [rbp + 0x44d5], 0
je 0x14004678b
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 0x1400467d7
movzx edx, byte [rbp + 0x44d7]
mov rax, qword [rbp + 0x44a0]
mov rcx, rax
call dbg.tail_join
jmp 0x1400467fd
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 0x1400467fd
nop
jmp 0x1400467fd
nop
cmp byte [rbp + 0x44d5], 0
je 0x140046814
mov rax, qword [rbp + 0x44e8]
mov qword [rbp + 0x44c0], rax
cmp byte [rbp + 0x44d5], 0
je 0x14004682b
cmp qword [rbp + 0x44c0], 0
jne 0x140046317
cmp byte [rbp + 0x44d5], 0
je 0x140046854
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 0x140046883
cmp qword [rbp + 0x44d8], 0
je 0x140046883
mov rax, qword [rbp + 0x44d8]
mov eax, dword [rax]
test eax, eax
jne 0x140046883
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 [0x14012ea04]
xor eax, 1
test al, al
jne 0x140045bd0
jmp 0x1400468ab
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 [0x14011bd40]
movzx eax, byte [rax]
test al, al
je 0x14004699c
mov rax, qword [0x14011bd40]
movzx eax, byte [rax]
test al, al
je 0x14004699c
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x14004692a
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x14004692a
mov rax, qword [0x14011be10]
mov eax, dword [rax]
cmp eax, 3
jle 0x14004699c
movzx eax, byte [0x14012ea10]
test al, al
je 0x14004693e
lea rax, str.QUIT
jmp 0x14004696d
movzx eax, byte [0x14012ea11]
test al, al
je 0x140046952
lea rax, str.RESTART
jmp 0x14004696d
movzx eax, byte [0x14012ea04]
test al, al
je 0x140046966
lea rax, [0x140100b09]
jmp 0x14004696d
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__.91
lea rax, str..._.._cgminer_4.9.1_api.c
mov rdx, rax
lea rax, [0x14012ea08]
mov rcx, rax
call sym._mutex_lock_1
movzx eax, byte [0x14012ea11]
test al, al
je 0x140046a6d
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 0x140046a59
mov r9d, 0x142c
lea r8, global___func__.91
lea rax, str..._.._cgminer_4.9.1_api.c
mov rdx, rax
lea rax, [0x14012ea08]
mov rcx, rax
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 0x140046b13
movzx eax, byte [0x14012ea10]
test al, al
je 0x140046b13
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 0x140046b04
mov r9d, 0x1432
lea r8, global___func__.91
lea rax, str..._.._cgminer_4.9.1_api.c
mov rdx, rax
lea rax, [0x14012ea08]
mov rcx, rax
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__.91
lea rax, str..._.._cgminer_4.9.1_api.c
mov rdx, rax
lea rax, [0x14012ea08]
mov rcx, rax
call sym._mutex_unlock_1
nop
add rsp, 0x4580
pop rbx
pop rsi
pop rbp
ret