Function at 0x100403380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov esi, edx
mov ecx, 1
mov edx, 0xa0
mov r12d, r8d
call sub.msys_gcrypt_20.dll_gcry_calloc
mov qword [rbx + 0x10], rax
test rax, rax
je 0x100403803
mov dword [rax + 8], 0xffffffff
lea rcx, [rsp + 0x30]
call sub.msys_assuan_0.dll_assuan_new
test eax, eax
jne 0x100403835
cmp esi, 0xffffffff
je 0x100403758
mov rcx, qword [rsp + 0x30]
mov r8d, 3
mov edx, esi
call sub.msys_assuan_0.dll_assuan_init_socket_server
mov ebp, eax
mov rdi, qword [rsp + 0x30]
test ebp, ebp
jne 0x1004037e5
lea rsi, [0x10042d308]
lea rdx, str.SEARCH
jmp 0x100403415
mov rdx, qword [rsi + 0x10]
add rsi, 0x18
test rdx, rdx
je 0x100403458
mov r9, qword [rsi + 8]
mov r8, qword [rsi]
mov rcx, rdi
call sub.msys_assuan_0.dll_assuan_register_command
test eax, eax
je 0x100403408
mov ecx, eax
call sub.msys_gpg_error_0.dll_gpg_strerror
lea rcx, str.failed_to_the_register_commands_with_Assuan:__s_n
mov rbx, rax
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, rbx
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
mov ecx, 2
call fcn.100401e30
nop dword [rax + rax]
cmp qword [0x10043b0a0], 0
je 0x1004037b0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rbx + 0x10]
mov rdx, rbx
lea rdi, [rsp + 0x38]
mov qword [rax + 0x10], rcx
call sub.msys_assuan_0.dll_assuan_set_pointer
mov rdx, qword [0x10043b0a0]
mov rcx, qword [rsp + 0x30]
call sub.msys_assuan_0.dll_assuan_set_hello_line
mov rcx, qword [rsp + 0x30]
lea rdx, [0x100401fd0]
call sub.msys_assuan_0.dll_assuan_register_option_handler
mov rcx, qword [rsp + 0x30]
lea rdx, [0x100401fc0]
call sub.msys_assuan_0.dll_assuan_register_reset_notify
mov rax, qword [rbx + 0x10]
mov rdx, qword [0x10043b0a8]
mov rsi, qword [0x100434dd0]
mov qword [rax], rdx
mov qword [0x10043b0a8], rax
mov dword [rax + 0x18], r12d
lea r12, str.connection_from_process__ld___ld:_ld__n
nop word [rax + rax]
mov rcx, qword [rsp + 0x30]
call sub.msys_assuan_0.dll_assuan_accept
cmp eax, 0xffffffff
je 0x100403558
test eax, eax
jne 0x100403718
mov r8d, dword [rsi + 4]
test r8d, r8d
jne 0x100403648
mov rcx, qword [rsp + 0x30]
mov r13, qword [rbx + 0x10]
call sub.msys_assuan_0.dll_assuan_get_pid
mov rcx, qword [rsp + 0x30]
mov dword [r13 + 8], eax
call sub.msys_assuan_0.dll_assuan_process
test eax, eax
je 0x1004034e0
mov ecx, eax
call sub.msys_gpg_error_0.dll_gpg_strerror
lea rcx, str.Assuan_processing_failed:__s_n
mov r13, rax
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, r13
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_info
mov rcx, qword [rsp + 0x30]
call sub.msys_assuan_0.dll_assuan_accept
cmp eax, 0xffffffff
jne 0x1004034ef
nop dword [rax]
test byte [rsi + 0x18], 1
jne 0x1004036c8
mov rcx, qword [rsp + 0x30]
call sub.msys_assuan_0.dll_assuan_close_output_fd
mov rax, qword [rbx + 0x10]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], 0
call sub.msys_assuan_0.dll_assuan_release
mov rdx, qword [rbx + 0x10]
mov ecx, dword [rdx + 0x1c]
test ecx, ecx
jne 0x1004037de
mov eax, dword [rbx + 8]
test eax, eax
jne 0x100403790
mov rax, qword [0x10043b0a8]
cmp rdx, rax
jne 0x100403689
mov rax, qword [rdx]
mov qword [0x10043b0a8], rax
mov rcx, qword [rdx + 0x80]
call sub.msys_gcrypt_20.dll_gcry_free
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x88]
test rcx, rcx
je 0x100403628
mov eax, dword [rax + 0x90]
test eax, eax
je 0x10040361f
xor esi, esi
nop
mov rdi, rsi
add rsi, 1
shl rdi, 4
mov rcx, qword [rcx + rdi]
call sub.msys_gcrypt_20.dll_gcry_free
mov rax, qword [rbx + 0x10]
mov rax, qword [rax + 0x88]
mov rcx, qword [rax + rdi + 8]
call sub.msys_gcrypt_20.dll_gcry_free
mov rax, qword [rbx + 0x10]
mov edx, dword [rax + 0x90]
mov rcx, qword [rax + 0x88]
cmp rsi, rdx
jb 0x1004035e0
call sub.msys_gcrypt_20.dll_gcry_free
mov rax, qword [rbx + 0x10]
mov rcx, rax
call sub.msys_gcrypt_20.dll_gcry_free
mov qword [rbx + 0x10], 0
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
call sub.msys_assuan_0.dll_assuan_get_peercred
test eax, eax
jne 0x100403504
mov rax, qword [rsp + 0x38]
mov rcx, r12
movsxd rdx, dword [rax]
mov r9d, dword [rax + 8]
mov r8d, dword [rax + 4]
call sub.msys_gpg_error_0.dll_gpgrt_log_info
jmp 0x100403504
cmp rdx, rax
je 0x100403748
mov rcx, rax
mov rax, qword [rax]
test rax, rax
jne 0x100403680
lea rax, str.kbxd_start_command_handler
mov r9d, 0x430
lea r8, str.kbxserver.c
mov ecx, 6
mov qword [rsp + 0x20], rax
lea rdx, [0x10042d26a]
call sub.msys_gpg_error_0.dll_gpgrt_log
call sub.msys_2.0.dll_abort
nop dword [rax + rax]
mov rax, qword [rbx + 0x10]
mov edx, dword [rax + 8]
cmp dword [rsi + 0x14], edx
jne 0x100403562
mov rax, qword [0x10043b0a8]
test rax, rax
je 0x100403562
nop dword [rax + rax]
cmp edx, dword [rax + 8]
jne 0x1004036f8
add ebp, 1
mov rax, qword [rax]
test rax, rax
jne 0x1004036f0
cmp ebp, 1
jne 0x100403562
call fcn.100403a70
jmp 0x100403562
mov ecx, eax
call sub.msys_gpg_error_0.dll_gpg_strerror
lea rcx, str.Assuan_accept_problem:__s_n
mov rdi, rax
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, rdi
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_info
test byte [rsi + 0x18], 1
je 0x100403562
jmp 0x1004036c8
mov rax, qword [rdx]
mov qword [rcx], rax
jmp 0x1004035b6
xor ecx, ecx
call sub.msys_assuan_0.dll_assuan_fdopen
mov ecx, 1
mov dword [rsp + 0x38], eax
call sub.msys_assuan_0.dll_assuan_fdopen
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x3c], eax
call sub.msys_assuan_0.dll_assuan_init_pipe_server
mov ebp, eax
jmp 0x1004033e6
mov edx, eax
lea rcx, str.oops:_connection_control_structure_still_referenced___d__n
call sub.msys_gpg_error_0.dll_gpgrt_log_error
nop
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call fcn.1004180c0
lea r9, str.Keyboxd_2.4.5_unknown_at_your_service
lea r8, [0x10042cf41]
mov rdx, rax
lea rcx, str.Home:__s_nConfig:__s_n_s
call fcn.10041cbf0
mov qword [0x10043b0a0], rax
jmp 0x100403466
xor ecx, ecx
call fcn.100401e30
mov rcx, rdi
call sub.msys_assuan_0.dll_assuan_release
mov ecx, ebp
call sub.msys_gpg_error_0.dll_gpg_strerror
lea rcx, str.failed_to_initialize_the_server:__s_n
mov rbx, rax
jmp 0x100403439
call fcn.100401fa0
mov ecx, eax
call sub.msys_gpg_error_0.dll_gpg_strerror
lea rcx, str.cant_allocate_control_structure:__s_n
mov rbx, rax
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, rbx
mov rcx, rax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msys_gpg_error_0.dll_gpgrt_log_error
mov ecx, eax
call sub.msys_gpg_error_0.dll_gpg_strerror
lea rcx, str.failed_to_allocate_assuan_context:__s_n
mov rbx, rax
jmp 0x100403439