Function at 0x14005c340
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, 0x38
xor eax, eax
mov r13, qword [rsp + 0xa0]
mov qword [rsp + 0x88], rdx
mov edx, dword [r8 + 0x28]
mov rbp, r8
mov qword [rsp + 0x80], rcx
and dx, 0x380
mov qword [rsp + 0x98], r9
cmp dx, 0x180
jne 0x14005c9bc
mov rdx, qword [r8 + 0xd0]
mov r14, qword [rdx + 0xe0]
test r14, r14
je 0x14005c9bc
mov rcx, qword [r8 + 0xe0]
mov rdx, r8
lea r12, [r14 + 0x10]
mov rbx, r12
mov rax, qword [rcx + 8]
mov rax, qword [rax + 0x380]
call qword [rax + 0x270]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov r15, qword [rax + 0x28]
mov eax, dword [r14]
imul rax, rax, 0x30
add rax, r12
cmp rbx, rax
jae 0x14005c863
cmp dword [rbx + 0x14], 4
jne 0x14005c408
cmp qword [rbp + 0xf8], 0
mov al, byte [rbx + 0x23]
setne dl
add edx, edx
and eax, 0xfffffffd
or eax, edx
mov byte [rbx + 0x23], al
jmp 0x14005c85a
test byte [rbx + 0x23], 1
jne 0x14005c85a
cmp qword [rbx], 0
je 0x14005c85a
mov rax, qword [r13]
test byte [rbp + 0x26], 0x10
je 0x14005c47f
test rax, rax
jne 0x14005c47f
movzx ecx, byte [rbx + 0x20]
mov edx, dword [rsp + 0x28]
mov r9d, ecx
call fcn.14005ab54
mov edx, dword [rbx + 0x18]
shr r9b, 3
mov rcx, qword [rsp + 0x80]
mov r8d, eax
mov eax, eax
and r9d, 1
lea rdx, [rdx + rax + 8]
add rdx, qword [rbp + 0xa0]
call fcn.14005add0
test rax, rax
je 0x14005c85a
mov rax, qword [rsp + 0x88]
test byte [rax], 1
jne 0x14005c4c9
jmp 0x14005c52b
mov edx, dword [rbx + 0x10]
imul rdx, rdx, 0x18
add rax, rdx
mov qword [r13 + 8], rax
cmp rax, qword [r13 + 0x10]
jae 0x14005c49e
mov edx, dword [rbx + 0x18]
add edx, 8
cmp qword [rax], rdx
je 0x14005c4af
mov edx, 0x5ec
lea rcx, str._binutils_2.40_bfd_elf_eh_frame.c
call fcn.140004e1a
mov eax, dword [rbx + 0x18]
mov rdx, r13
lea ecx, [rax + 8]
call qword [rsp + 0x98]
test al, al
jne 0x14005c85a
jmp 0x14005c46d
mov al, byte [rbx + 0x20]
and al, 0x70
jne 0x14005c4d6
test byte [rbx + 0x23], 8
jmp 0x14005c4d8
cmp al, 0x50
jne 0x14005c52b
mov rax, qword [rsp + 0x88]
mov byte [r15 + 0x13c], 0
test byte [rax + 4], 6
je 0x14005c52b
mov eax, dword [0x1400f04a0]
cmp eax, 9
jg 0x14005c514
mov rdx, qword [rsp + 0x80]
mov r8, rbp
lea rcx, str.FDE_encoding_in__pB__pA__prevents_.eh_frame_hdr_table_being_created
call fcn.140004d12
jmp 0x14005c525
cmp eax, 0xa
jne 0x14005c52b
lea rcx, str.further_warnings_about_FDE_encoding_preventing_.eh_frame_hdr_generation_dropped
call fcn.140004d12
inc dword [0x1400f04a0]
mov rdi, qword [rbx]
and byte [rbx + 0x23], 0xfd
inc dword [r15 + 0x138]
mov al, byte [rdi + 0x23]
test al, 2
je 0x14005c55b
mov rsi, qword [rdi]
test byte [rdi + 0xa], 0x40
jne 0x14005c857
and eax, 0xfffffffd
mov qword [rdi], rbp
mov byte [rdi + 0x23], al
test rsi, rsi
jne 0x14005c563
mov rsi, rdi
jmp 0x14005c857
cmp byte [rsi + 0x50], 0xff
je 0x14005c68c
mov eax, dword [rsi + 0x40]
mov rcx, qword [rsp + 0x80]
xor edx, edx
imul rax, rax, 0x18
add rax, qword [r13]
mov qword [rsi + 0x40], rdx
mov rdx, qword [rcx + 0x108]
mov r8, qword [rax + 8]
cmp byte [rdx + 4], 2
jne 0x14005c59d
shr r8, 0x20
jmp 0x14005c5a1
shr r8, 8
mov eax, r8d
cmp rax, qword [r13 + 0x28]
jae 0x14005c5ba
shl rax, 5
add rax, qword [r13 + 0x18]
mov dl, byte [rax + 0x14]
shr dl, 4
je 0x14005c5f3
mov rax, qword [r13 + 0x38]
sub r8d, dword [r13 + 0x30]
mov rcx, qword [rax + r8*8]
mov al, byte [rcx + 0x18]
sub eax, 6
cmp al, 1
ja 0x14005c5d6
mov rcx, qword [rcx + 0x28]
jmp 0x14005c5c6
mov qword [rsi + 0x40], rcx
mov rdx, qword [rsp + 0x88]
xor r8d, r8d
call fcn.14004d43e
test al, al
jne 0x14005c645
jmp 0x14005c68c
mov edx, dword [rax + 0x18]
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x20], r8d
call fcn.140039582
test rax, rax
je 0x14005c55b
mov rdx, qword [rax + 0xb8]
test rdx, rdx
cmove rdx, rax
cmp qword [rdx + 0x60], 0
je 0x14005c55b
mov rax, qword [rsp + 0x80]
mov r8d, dword [rsp + 0x20]
mov byte [rsi + 9], 1
mov eax, dword [rax + 0x3c]
mov dword [rsi + 0x44], r8d
mov dword [rsi + 0x40], eax
mov rax, qword [rsp + 0x88]
test byte [rax], 1
je 0x14005c68c
test byte [rsi + 0x50], 0x70
jne 0x14005c68c
mov rax, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov r8, rbp
mov rcx, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x380]
call qword [rax + 0x278]
test al, al
je 0x14005c68c
or byte [rdi + 0xa], 0xc
xor r8d, r8d
mov edx, 4
mov rcx, rsi
call fcn.14009322d
mov edx, 1
lea rcx, [rsi + 8]
mov r8d, eax
call fcn.14009322d
lea rcx, [rsi + 0xa]
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x2c], eax
call sub.msvcrt.dll_strlen
mov r8d, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x20]
lea rdx, [rax + 1]
call fcn.14009322d
lea rcx, [rsi + 0x20]
mov edx, 8
mov r8d, eax
call fcn.14009322d
lea rcx, [rsi + 0x28]
mov edx, 8
mov r8d, eax
call fcn.14009322d
lea rcx, [rsi + 0x30]
mov edx, 8
mov r8d, eax
call fcn.14009322d
lea rcx, [rsi + 0x38]
mov edx, 8
mov r8d, eax
call fcn.14009322d
lea rcx, [rsi + 0x40]
mov edx, 8
mov r8d, eax
call fcn.14009322d
mov edx, 8
mov r8d, eax
mov rax, qword [rsi + 0x48]
mov rcx, qword [rax]
add rcx, 0x60
call fcn.14009322d
lea rcx, [rsi + 0x50]
mov edx, 1
mov r8d, eax
call fcn.14009322d
lea rcx, [rsi + 0x51]
mov edx, 1
mov r8d, eax
call fcn.14009322d
lea rcx, [rsi + 0x52]
mov edx, 1
mov r8d, eax
call fcn.14009322d
lea rcx, [rsi + 0x53]
mov edx, 1
mov r8d, eax
call fcn.14009322d
movzx edx, byte [rsi + 0x53]
mov ecx, 0x32
mov r8d, eax
cmp rdx, rcx
cmova rdx, rcx
lea rcx, [rsi + 0x55]
call fcn.14009322d
cmp qword [r15 + 0x130], 0
mov dword [rsi + 4], eax
je 0x14005c7d2
mov rcx, qword [r15 + 0x130]
mov r8d, dword [rsi + 4]
mov rdx, rsi
mov r9d, 1
call fcn.140092f52
mov rdx, rax
test rax, rax
jne 0x14005c802
jmp 0x14005c55b
lea r9, [sub.msvcrt.dll_free]
lea r8, [0x14005af2b]
mov ecx, 1
lea rdx, [0x14005ab95]
call fcn.140092d02
mov qword [r15 + 0x130], rax
test rax, rax
jne 0x14005c7ac
jmp 0x14005c55b
mov rax, qword [rax]
test rax, rax
jne 0x14005c836
mov ecx, 0x88
mov qword [rsp + 0x20], rdx
call sub.msvcrt.dll_malloc
test rax, rax
je 0x14005c55b
mov rdx, qword [rsp + 0x20]
mov ecx, 0x22
mov rdi, rax
rep movsd dword [rdi], dword [rsi]
mov qword [rdx], rax
jmp 0x14005c853
mov dl, byte [rdi + 0xa]
or byte [rdi + 0x23], 2
or edx, 0x40
mov byte [rdi + 0xa], dl
mov rcx, qword [rax + 0x48]
and dl, 2
mov qword [rdi], rcx
je 0x14005c853
or byte [rcx + 0xa], 2
mov rsi, qword [rax + 0x48]
mov qword [rbx], rsi
add rbx, 0x30
jmp 0x14005c3d2
mov rcx, qword [r14 + 8]
mov ebx, 1
call sub.msvcrt.dll_free
mov r9d, dword [r14]
xor eax, eax
xor r11d, r11d
mov qword [r14 + 8], rax
xor r8d, r8d
imul r9, r9, 0x30
add r9, r12
cmp r12, r9
jae 0x14005c91c
mov dl, byte [r12 + 0x23]
test dl, 2
jne 0x14005c913
mov r10d, dword [r12 + 0x14]
mov eax, 4
cmp r10d, 4
je 0x14005c8dc
and dl, 1
je 0x14005c8c3
mov al, byte [r12 + 0xa]
and eax, 0x10
cmp al, 1
sbb eax, eax
and eax, 0xfffffffc
add eax, 8
jmp 0x14005c8dc
mov edx, dword [rsp + 0x28]
movzx ecx, byte [r12 + 0x20]
call fcn.14005ab54
mov edx, 4
cmp eax, edx
cmovb eax, edx
lea edx, [r8 + rax - 1]
neg eax
and eax, edx
cmp dword [r12 + 0x18], eax
mov dword [r12 + 0x1c], eax
cmovne r11d, ebx
mov r8d, eax
cmp r10d, 4
je 0x14005c910
mov rcx, r12
call fcn.14005ab99
mov esi, eax
call fcn.14005abb9
add esi, eax
add r10d, esi
add r8d, r10d
add r12, 0x30
jmp 0x14005c887
mov rax, qword [rbp + 0x40]
add r8d, 3
and r8d, 0xfffffffc
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x40], r8
cmp rax, r8
jne 0x14005c93d
xor eax, eax
and r11d, 1
je 0x14005c9b9
mov rax, qword [r13 + 0x28]
cmp rax, 1
jbe 0x14005c9b4
mov rdx, qword [rbp + 0xd0]
mov rbx, qword [r13 + 0x18]
shl rax, 5
xor edi, edi
mov r12d, dword [rdx + 0x88]
lea rsi, [rbx + rax]
add rbx, 0x20
cmp rbx, rsi
jae 0x14005c996
cmp byte [rbx + 0x14], 1
ja 0x14005c990
cmp r12d, dword [rbx + 0x18]
jne 0x14005c990
mov rcx, qword [rbx]
mov rdx, rbp
call fcn.14005ac49
test rax, rax
je 0x14005c990
add qword [rbx], rax
mov edi, 1
add rbx, 0x20
jmp 0x14005c967
test edi, edi
je 0x14005c9b4
mov rax, qword [rsp + 0x80]
mov rdx, qword [r13 + 0x18]
mov rax, qword [rax + 0x108]
mov qword [rax + 0xa8], rdx
mov eax, 1
and eax, 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret