Function at 0x1004130e0
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
mov rax, qword [0x10044cf20]
cmp byte [rax], 0
mov rbx, rcx
je 0x10041314a
cmp byte [0x100456840], 0
jne 0x100413117
mov rax, qword [0x10044cf80]
cmp byte [rax], 0
je 0x100413708
mov rax, qword [rbx + 0x178]
lea r12, [rsp + 0x40]
mov edx, 0x100
lea r8, str.Pushing_work_from_pool__d_to_hash_queue
mov rcx, r12
mov r9d, dword [rax]
call sub.cygwin1.dll_snprintf
xor r8d, r8d
mov rdx, r12
mov ecx, 7
call fcn.100433050
mov eax, dword [0x100454a08]
mov rcx, rbx
mov dword [rbx + 0x1e4], eax
call fcn.100411810
mov rax, qword [rbx + 0x178]
mov rcx, qword [0x100454a70]
add dword [rax + 0x44], 1
call sub.cygwin1.dll_pthread_mutex_lock
test eax, eax
jne 0x1004137c7
cmp byte [rbx + 0x191], 0
je 0x100413593
mov r12, qword [0x100456978]
cmp byte [r12 + 0x10], 0
jne 0x100413545
movzx eax, byte [rbx + 0x1eb]
movzx edx, byte [rbx + 0x1e8]
mov dword [rbx + 0x220], 4
shl eax, 0x18
lea eax, [rax + rdx + 0x112410d]
movzx edx, byte [rbx + 0x1ea]
shl edx, 0x10
add eax, edx
movzx edx, byte [rbx + 0x1e9]
shl edx, 8
add eax, edx
mov edx, 0x9f49bac6
xor eax, 0x7f76d
mov ecx, edx
mov edx, eax
sub ecx, eax
shl edx, 8
xor edx, ecx
mov ecx, 0xfeedbef3
sub ecx, eax
mov r8d, edx
sub eax, edx
sub ecx, edx
shr r8d, 0xd
xor r8d, ecx
mov ecx, r8d
sub eax, r8d
sub edx, r8d
shr ecx, 0xc
xor ecx, eax
mov eax, edx
mov edx, ecx
sub eax, ecx
sub r8d, ecx
shl edx, 0x10
xor edx, eax
mov eax, edx
sub r8d, edx
sub ecx, edx
shr eax, 5
xor eax, r8d
mov r8d, eax
sub ecx, eax
sub edx, eax
shr r8d, 3
xor r8d, ecx
mov ecx, r8d
sub edx, r8d
shl ecx, 0xa
xor edx, ecx
sub eax, r8d
sub eax, edx
shr edx, 0xf
mov edi, edx
xor edi, eax
lea rax, [rbx + 0x1e8]
mov qword [rbx + 0x218], rax
mov rax, qword [0x100453008]
mov dword [rbx + 0x224], edi
test rax, rax
je 0x10041371d
mov rdx, qword [rax + 0x1f0]
lea rbp, [rbx + 0x1f0]
mov qword [rbx + 0x200], 0
mov qword [rbx + 0x1f0], rdx
mov rcx, qword [rax + 0x1f0]
mov rdx, qword [rcx + 0x18]
sub rdx, qword [rcx + 0x20]
mov qword [rbx + 0x1f8], rdx
mov rdx, qword [rax + 0x1f0]
mov rdx, qword [rdx + 0x18]
mov qword [rdx + 0x10], rbx
mov rdx, qword [rax + 0x1f0]
mov qword [rdx + 0x18], rbp
mov rsi, qword [rax + 0x1f0]
mov ecx, dword [rsi + 0x10]
lea edx, [rcx + 1]
mov dword [rsi + 0x10], edx
mov rdx, qword [rax + 0x1f0]
mov eax, dword [rdx + 8]
sub eax, 1
and eax, edi
shl rax, 4
add rax, qword [rdx]
mov rdx, qword [rax]
add dword [rax + 8], 1
mov qword [rbx + 0x208], 0
mov qword [rbx + 0x210], rdx
mov rdx, qword [rax]
test rdx, rdx
je 0x10041330e
mov qword [rdx + 0x18], rbp
mov edx, dword [rax + 0xc]
mov qword [rax], rbp
lea edx, [rdx + rdx*4 + 5]
add edx, edx
cmp dword [rax + 8], edx
jae 0x1004135ad
mov rbx, qword [0x100453008]
mov r12, qword [0x100456978]
test rbx, rbx
je 0x100413545
lea rdi, [rbx + 0x1f0]
mov esi, 1
mov rcx, rdi
xor r11d, r11d
xor edi, edi
xor ebp, ebp
add ebp, 1
mov rax, rcx
test esi, esi
je 0x100413588
xor r10d, r10d
jmp 0x10041337c
mov rdx, qword [rbx + 0x1f0]
add rax, qword [rdx + 0x20]
cmp r10d, esi
je 0x100413580
mov rax, qword [rax + 0x10]
add r10d, 1
test rax, rax
jne 0x100413368
mov r8d, esi
mov rdx, rcx
mov rcx, rax
nop word [rax + rax]
test r10d, r10d
jne 0x1004133e1
test r8d, r8d
je 0x1004134f8
test rcx, rcx
je 0x100413508
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1004133c3
mov r9, qword [rbx + 0x1f0]
add rax, qword [r9 + 0x20]
sub r8d, 1
test r11, r11
jne 0x10041342f
mov rdi, rcx
mov r11, rcx
xor r9d, r9d
mov rcx, rax
mov qword [r11 + 8], r9
test r10d, r10d
je 0x10041339d
test r8d, r8d
je 0x1004134d0
test rcx, rcx
je 0x1004134d0
mov rax, qword [rbx + 0x1f0]
mov r9, qword [rax + 0x20]
mov r13, r9
neg r13
mov rax, qword [rdx + r13 + 0x180]
sub eax, dword [rcx + r13 + 0x180]
test eax, eax
jle 0x100413450
mov rax, qword [rcx + 0x10]
add r9, rax
test rax, rax
cmovne rax, r9
sub r8d, 1
test r11, r11
je 0x1004133cc
mov r9, qword [rbx + 0x1f0]
mov r13, rcx
sub r13, qword [r9 + 0x20]
mov qword [r11 + 0x10], r13
mov r13, rcx
mov rcx, rax
jmp 0x1004134b8
xor eax, eax
test rdx, rdx
je 0x100413465
mov rax, qword [rdx + 0x10]
add r9, rax
test rax, rax
cmovne rax, r9
sub r10d, 1
test r11, r11
je 0x100413486
test rdx, rdx
jne 0x1004134a0
mov qword [r11 + 0x10], 0
mov rdx, rax
xor r11d, r11d
jmp 0x100413398
test rdx, rdx
jne 0x100413868
xor edi, edi
mov rdx, rax
jmp 0x100413398
mov r9, qword [rbx + 0x1f0]
mov r13, rdx
sub r13, qword [r9 + 0x20]
mov qword [r11 + 0x10], r13
mov r13, rdx
mov rdx, rax
mov rax, qword [rbx + 0x1f0]
sub r11, qword [rax + 0x20]
mov r9, r11
mov r11, r13
jmp 0x1004133d8
xor eax, eax
test rdx, rdx
je 0x100413465
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x100413465
mov r9, qword [rbx + 0x1f0]
add rax, qword [r9 + 0x20]
jmp 0x100413465
test rcx, rcx
jne 0x100413350
nop dword [rax]
test r11, r11
je 0x100413515
mov qword [r11 + 0x10], 0
cmp ebp, 1
jbe 0x100413528
add esi, esi
test rdi, rdi
jne 0x100413346
xor r11d, r11d
mov rax, qword [rbx + 0x1f0]
mov qword [rax + 0x18], r11
mov rax, qword [rbx + 0x1f0]
sub rdi, qword [rax + 0x20]
mov qword [0x100453008], rdi
lea rcx, [r12 + 0x20]
call sub.cygwin1.dll_pthread_cond_broadcast
mov rcx, qword [0x100454a70]
call sub.cygwin1.dll_pthread_mutex_unlock
test eax, eax
jne 0x10041382a
mov rax, qword [0x10044d0b0]
mov rax, qword [rax]
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp rax
mov r8d, r10d
jmp 0x10041338c
xor r8d, r8d
xor r10d, r10d
jmp 0x10041338c
mov eax, dword [rbx + 0x194]
test eax, eax
je 0x10041318a
add dword [0x100454a0c], 1
jmp 0x10041318a
mov rbp, qword [rbx + 0x1f0]
mov edi, dword [rbp + 0x34]
test edi, edi
jne 0x100413323
mov ecx, dword [rbp + 8]
mov edx, 1
shl rcx, 5
call sub.cygwin1.dll_calloc
mov rsi, rax
test rax, rax
je 0x100413860
mov edx, dword [rbp + 8]
mov eax, dword [rbp + 0x10]
mov ecx, dword [rbp + 0xc]
lea edx, [rdx + rdx - 1]
test edx, eax
setne dl
add ecx, 1
movzx edx, dl
shr eax, cl
add eax, edx
mov dword [rbp + 0x28], eax
mov rax, qword [rbx + 0x1f0]
mov dword [rax + 0x2c], 0
mov rdx, qword [rbx + 0x1f0]
mov eax, dword [rdx + 8]
test eax, eax
je 0x1004136aa
xor r10d, r10d
mov ecx, r10d
shl rcx, 4
add rcx, qword [rdx]
mov r8, qword [rcx]
test r8, r8
jne 0x10041363b
jmp 0x10041369d
mov r8, r9
lea ecx, [rax + rax - 1]
and ecx, dword [r8 + 0x34]
mov r9, qword [r8 + 0x20]
shl rcx, 4
add rcx, rsi
mov eax, dword [rcx + 8]
add eax, 1
mov dword [rcx + 8], eax
cmp eax, dword [rdx + 0x28]
jbe 0x100413673
add dword [rdx + 0x2c], 1
mov r11, qword [rbx + 0x1f0]
xor edx, edx
mov eax, dword [rcx + 8]
div dword [r11 + 0x28]
mov dword [rcx + 0xc], eax
mov qword [r8 + 0x18], 0
mov rax, qword [rcx]
mov qword [r8 + 0x20], rax
test rax, rax
je 0x10041368b
mov qword [rax + 0x18], r8
mov rdx, qword [rbx + 0x1f0]
mov qword [rcx], r8
mov eax, dword [rdx + 8]
test r9, r9
jne 0x100413638
add r10d, 1
cmp r10d, eax
jb 0x10041361e
mov rcx, qword [rdx]
call fcn.10043bf30
mov rax, qword [rbx + 0x1f0]
shl dword [rax + 8], 1
mov rax, qword [rbx + 0x1f0]
add dword [rax + 0xc], 1
mov rax, qword [rbx + 0x1f0]
mov qword [rax], rsi
mov rax, qword [rbx + 0x1f0]
mov edx, dword [rax + 0x10]
shr edx, 1
cmp dword [rax + 0x2c], edx
jbe 0x1004136e8
mov edi, dword [rax + 0x30]
add edi, 1
mov dword [rax + 0x30], edi
mov rax, qword [rbx + 0x1f0]
cmp dword [rax + 0x30], 1
jbe 0x100413323
mov dword [rax + 0x34], 1
jmp 0x100413323
mov rax, qword [0x10044cf70]
cmp dword [rax], 6
jle 0x10041314a
jmp 0x100413117
mov qword [rbx + 0x200], 0
mov ecx, 0x40
mov qword [rbx + 0x1f8], 0
call sub.cygwin1.dll_malloc
mov qword [rbx + 0x1f0], rax
mov rsi, rax
test rax, rax
je 0x100413860
lea rbp, [rbx + 0x1f0]
mov qword [rax + 0x10], 0
mov edx, 1
mov ecx, 0x200
mov qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
mov qword [rax + 0x38], 0
mov qword [rax + 0x18], rbp
movabs rax, 0x500000020
mov qword [rsi + 8], rax
mov qword [rsi + 0x20], 0x1f0
call sub.cygwin1.dll_calloc
mov dword [rsi + 0x38], 0xa0111fe1
mov qword [rsi], rax
test rax, rax
je 0x100413860
mov qword [0x100453008], rbx
mov rax, rbx
mov edx, 1
jmp 0x1004132d0
lea rdi, str.hash_push
lea r12, [rsp + 0x40]
call sub.cygwin1.dll___errno
mov qword [rsp + 0x28], rdi
lea rdi, str.cgminer.c
lea r8, [0x100441b18]
mov dword [rsp + 0x30], 0x15f4
mov qword [rsp + 0x20], rdi
mov r9d, dword [rax]
mov edx, 0x100
mov rcx, r12
call sub.cygwin1.dll_snprintf
mov rdx, r12
mov ecx, 3
mov r8d, 1
call fcn.100433050
mov edx, 1
mov ecx, 1
call fcn.100405a50
lea rdi, str.hash_push
lea r12, [rsp + 0x40]
call sub.cygwin1.dll___errno
mov qword [rsp + 0x28], rdi
lea rdi, str.cgminer.c
lea r8, [0x100441b98]
mov dword [rsp + 0x30], 0x15fd
mov qword [rsp + 0x20], rdi
mov r9d, dword [rax]
jmp 0x1004137fb
or ecx, 0xffffffff
call sub.cygwin1.dll_exit
mov rdi, rdx
mov r11, rdx
xor r9d, r9d
mov rdx, rax
jmp 0x1004133d8