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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
lea rax, [rsp + 0x1a0]
mov dword [rsp + 0x50], r8d
mov esi, ecx
mov ebx, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0x1a0], r8
mov qword [rsp + 0x1a8], r9
test r8d, r8d
je 0x100424dfb
lea rcx, [rsp + 0x58]
xor ebx, ebx
jmp 0x100424ce9
cmp r8, 0xffff
ja 0x100424cfc
mov r8d, dword [rax + 0x10]
add ebx, 1
add rax, 0x18
add rcx, 0x18
mov dword [rcx - 8], r8d
test r8d, r8d
je 0x100424d18
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov qword [rcx], r8
mov qword [rcx + 8], r9
cmp ebx, 9
jne 0x100424cc8
mov eax, 0x8030
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov byte [rsp + 0x43], 0x5c
cmp edx, 0xff
ja 0x100424ef0
mov byte [rsp + 0x44], 1
mov r15d, 3
mov byte [rsp + 0x45], dl
movsxd r14, ebx
lea rdi, [rsp + 0x50]
xor r13d, r13d
lea rax, [r14 + r14*2]
mov rdx, rdi
lea r9, [rdi + rax*8]
nop
xor r8d, r8d
mov rax, qword [rdx + 8]
cmp dword [rdx], 0xff
seta r8b
lea rcx, [r8 + 2]
cmp rax, 0x7f
jbe 0x100424d7b
xor ecx, ecx
cmp rax, 0xff
seta cl
lea rcx, [rcx + r8 + 3]
add rax, rcx
add rdx, 0x18
add r13, rax
cmp rdx, r9
jne 0x100424d50
lea r12, [r13 + r15 + 2]
cmp r13, 0x7f
jbe 0x100424e28
cmp r13, 0xff
ja 0x100424f11
lea r12, [r13 + r15 + 3]
mov rcx, r12
call sub.msys_gcrypt_20.dll_gcry_malloc
mov rbp, rax
test rax, rax
je 0x100424f97
lea r8, [rsp + 0x43]
mov r9d, r15d
test r15d, r15d
je 0x100424de1
xor eax, eax
mov edx, eax
add eax, 1
movzx ecx, byte [r8 + rdx]
mov byte [rbp + rdx], cl
cmp eax, r9d
jb 0x100424dce
lea rax, [rbp + r15]
mov edx, 0xffff8153
mov word [rbp + r15], dx
lea rcx, [rax + 3]
mov byte [rax + 2], r13b
jmp 0x100424e79
mov byte [rsp + 0x43], 0x5c
cmp edx, 0xff
ja 0x100424fa8
mov byte [rsp + 0x44], 1
mov r12d, 5
xor r13d, r13d
mov r15d, 3
mov byte [rsp + 0x45], dl
nop dword [rax]
mov rcx, r12
call sub.msys_gcrypt_20.dll_gcry_malloc
mov rbp, rax
test rax, rax
je 0x100424f97
lea r8, [rsp + 0x43]
mov r9d, r15d
test r15d, r15d
je 0x100424e5e
xor eax, eax
mov edx, eax
add eax, 1
movzx ecx, byte [r8 + rdx]
mov byte [rbp + rdx], cl
cmp eax, r9d
jb 0x100424e4b
add r15, rbp
lea rdi, [rsp + 0x50]
movsxd r14, ebx
mov byte [r15], 0x53
lea rcx, [r15 + 2]
mov byte [r15 + 1], r13b
test ebx, ebx
je 0x100424eb3
lea rax, [r14 + r14*2]
mov rbx, rdi
lea r13, [rdi + rax*8]
nop dword [rax]
mov rdi, qword [rbx + 8]
mov edx, dword [rbx]
add rbx, 0x18
mov r8, rdi
call fcn.100421590
mov rdx, qword [rbx - 8]
lea r9, [rcx + rax]
mov rcx, r9
call sub.msys_2.0.dll_memcpy
lea rcx, [rax + rdi]
cmp rbx, r13
jne 0x100424e88
lea rax, [rbp + r12]
cmp rcx, rax
jne 0x100424fef
mov qword [rsp + 0x20], r12
mov r9, rbp
mov r8d, 0x3fff
mov ecx, esi
mov edx, 0xffffffff
call fcn.10040d070
mov rcx, rbp
mov dword [rsp + 0x3c], eax
call sub.msys_gcrypt_20.dll_gcry_free
mov eax, dword [rsp + 0x3c]
jmp 0x100424d01
cmp edx, 0xffff
ja 0x100424f75
rol dx, 8
mov byte [rsp + 0x44], 2
mov r15d, 4
mov word [rsp + 0x45], dx
jmp 0x100424d38
lea r12, [r13 + r15 + 4]
mov rcx, r12
call sub.msys_gcrypt_20.dll_gcry_malloc
mov rbp, rax
test rax, rax
je 0x100424f97
lea r8, [rsp + 0x43]
mov r9d, r15d
test r15d, r15d
je 0x100424f48
xor eax, eax
mov edx, eax
add eax, 1
movzx ecx, byte [r8 + rdx]
mov byte [rbp + rdx], cl
cmp eax, r9d
jb 0x100424f35
mov eax, 0xffff8253
lea rdx, [rbp + r15]
mov word [rbp + r15], ax
mov eax, 0xffff
lea rcx, [rdx + 4]
cmp r13, rax
cmovbe rax, r13
rol ax, 8
mov word [rdx + 2], ax
jmp 0x100424e79
mov eax, edx
rol dx, 8
mov byte [rsp + 0x44], 3
mov r15d, 5
shr eax, 0x10
mov word [rsp + 0x46], dx
mov byte [rsp + 0x45], al
jmp 0x100424d38
call fcn.100421ed0
xor ebp, ebp
jmp 0x100424edb
cmp edx, 0xffff
ja 0x100424fd0
rol dx, 8
mov byte [rsp + 0x44], 2
mov r15d, 4
mov word [rsp + 0x45], dx
lea r12, [r15 + 2]
xor r13d, r13d
jmp 0x100424e28
mov eax, edx
rol dx, 8
mov byte [rsp + 0x44], 3
mov r15d, 5
shr eax, 0x10
mov word [rsp + 0x46], dx
mov byte [rsp + 0x45], al
jmp 0x100424fc4
lea r9, str.put_data
mov r8d, 0x2d0
lea rdx, str.app_piv.c
lea rcx, str.data__datalen__p
call sub.msys_gpg_error_0.dll__gpgrt_log_assert
nop
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov ebx, 0x60000a4
mov rdi, qword [rsp + 0x110]
mov dword [rsp + 0x7c], 0
mov rsi, rcx
mov rbp, rdx
mov r12, r8
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
test rdi, rdi
je 0x1004250d9
mov rdx, r8
mov ebx, 0x6000076
call fcn.100423380
mov r13, rax
test rax, rax
je 0x1004250d9
cmp byte [rax + 5], 0
je 0x1004250d9
mov edx, dword [rax]
mov rcx, rsi
call fcn.100421940
xor r9d, r9d
mov r8, r12
mov rdx, rbp
lea rax, [rsp + 0x98]
mov rcx, rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
call fcn.100423560
mov ebx, eax
test eax, eax
je 0x1004250f0
cmp ax, 0x1b
mov eax, 0x6000011
mov rbp, qword [rsp + 0x88]
cmove ebx, eax
mov rcx, qword [rsp + 0x80]
call sub.msys_gcrypt_20.dll_gcry_free
mov rcx, rbp
call sub.msys_gcrypt_20.dll_gcry_free
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, qword [rsp + 0x108]
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x80]
mov rdx, rdi
call fcn.100413ff0
mov rbp, qword [rsp + 0x88]
mov ebx, eax
test eax, eax
jne 0x1004250c4
lea rax, [rsp + 0x7c]
mov rcx, rbp
mov ebx, 0x6000046
mov r9, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [0x100421790]
mov r8, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x98]
call fcn.100443330
test eax, eax
jne 0x1004250c4
mov edx, dword [r13]
mov rcx, rsi
call fcn.100421940
mov edx, dword [r13]
test rsi, rsi
je 0x100425228
mov rax, qword [rsi + 8]
test rax, rax
je 0x100425228
mov ecx, dword [rax + 0x14]
lea rax, [0x100462be9]
mov dword [rsp + 0x58], 0
mov r9, rdi
mov r8d, 0x70
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0xfe
mov qword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x71
mov qword [rsp + 0x20], rax
call fcn.100424c70
mov ebx, eax
cmp ax, 0x57
je 0x100425221
test eax, eax
je 0x1004250c4
mov ecx, ebx
call sub.msys_gpg_error_0.dll_gpg_strerror
lea rdx, [r13 + 5]
lea rcx, str.piv:_failed_to_write_cert_to__s:__s_n
mov r8, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
jmp 0x1004250c4
mov ebx, 0x600013a
jmp 0x100425202
mov ecx, 0xffffffff
jmp 0x10042518a