Function at 0x2100daeb0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp + 0x50], rcx
mov rsi, r8
mov rdi, r9
mov rbx, rcx
mov qword [rbp + 0x58], rdx
test rdx, rdx
je 0x2100daee5
xor ecx, ecx
call sym.GetModuleHandleA
mov rbx, rax
cmp word [rbx], 0x5a4d
jne 0x2100daf08
movsxd rcx, dword [rbx + 0x3c]
add rcx, rbx
cmp dword [rcx], 0x4550
jne 0x2100daf08
cmp word [rcx + 4], 0x8664
je 0x2100daf1f
nop dword [rax + rax]
xor r12d, r12d
mov rax, r12
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movzx eax, word [rcx + 0x5c]
mov edx, dword [rcx + 0x90]
mov r11d, dword [rcx + 0x94]
mov word [rsi], ax
test edx, edx
je 0x2100daf08
cmp qword [rbp + 0x58], 0
mov dword [rbp - 0x18], 0
je 0x2100db33b
mov qword [rbp - 0x10], 0
test rdi, rdi
je 0x2100daf68
mov eax, dword [rbp - 0x18]
lea ecx, [rax + rdx]
cmp ecx, dword [0x21034b048]
ja 0x2100db2ba
lea rdi, [rbx + rdx]
mov qword [rbp - 0x40], 0
mov qword [rbp - 8], rdi
cmp qword [rbp + 0x58], 0
mov qword [rbp - 0x28], 0
je 0x2100dafa9
mov rcx, qword [rbp + 0x50]
call sym.msys_2.0.dll_strlen
add rax, 0x13
and rax, 0xfffffffffffffff0
call fcn.21021b550
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x28], rax
mov edx, dword [rdi + 0x10]
test edx, edx
je 0x2100db371
mov rax, qword [rbp - 0x40]
lea r12, [0x2102aa140]
test rax, rax
cmove rax, rbx
xor r8d, r8d
mov qword [rbp - 0x38], rax
nop dword [rax]
mov ecx, dword [rdi + 0xc]
mov eax, 0x6d
sub rcx, qword [rbp - 0x10]
lea r9, [0x210298762]
add rcx, qword [rbp - 0x38]
jmp 0x2100db01a
movzx r10d, dl
movzx r11d, dl
movsx r10d, byte [r12 + r10]
xor r10d, r11d
cmp r10d, eax
jne 0x2100db0e0
test dl, dl
je 0x2100db025
movzx eax, byte [r9 + 1]
add r9, 1
add rcx, 1
movzx edx, byte [rcx]
cmp dl, al
jne 0x2100daff0
test al, al
jne 0x2100db00d
cmp qword [rbp + 0x58], 0
je 0x2100db358
mov r14, qword [rbp + 0x50]
xor esi, esi
lea rax, [rbp - 0x14]
mov qword [rbp - 0x30], rax
mov r8d, esi
mov r15, r14
test r15, r15
je 0x2100db0e0
nop dword [rax]
mov r8d, dword [rdi]
test r8d, r8d
je 0x2100db09b
lea r13, [rbx + r8]
mov r10d, dword [rdi + 0x10]
mov rax, qword [r13]
lea r14, [rbx + r10]
test rax, rax
je 0x2100db09b
nop dword [rax]
test rax, rax
js 0x2100db08a
lea rdx, [rbx + rax + 2]
mov rcx, r15
call sym.msys_2.0.dll_strcmp
test eax, eax
je 0x2100db1f0
mov rax, qword [r13 + 8]
add r13, 8
add r14, 8
test rax, rax
jne 0x2100db070
add rsi, 1
cmp rsi, 3
je 0x2100db2a0
mov r15, qword [rbp - 0x28]
lea rax, str.NOTUSED
mov r8, qword [rbp + 0x50]
lea rdx, str.__s_s
mov r9, qword [rax + rsi*8]
mov rcx, r15
call sym.__small_sprintf
mov r8d, esi
test r15, r15
jne 0x2100db050
nop word [rax + rax]
mov eax, dword [rdi + 0x24]
add rdi, 0x14
test eax, eax
jne 0x2100dafd0
cmp qword [rbp - 0x40], 0
je 0x2100db32b
mov rcx, qword [rbp - 0x40]
mov dword [rbp - 0x30], r8d
call sym.UnmapViewOfFile
cmp qword [rbp + 0x58], 0
mov r8d, dword [rbp - 0x30]
je 0x2100daf08
sub r8d, 1
cmp r8d, 2
ja 0x2100daf08
movsxd r10, r8d
mov r12, qword [rbp + 0x50]
lea r13, str.NOTUSED
mov r14, r10
test r14, r14
jne 0x2100db30b
nop
test r12, r12
je 0x2100daf08
mov rdi, qword [0x21024fb10]
cmp word [rdi], 0x5a4d
jne 0x2100db2f0
movsxd rax, dword [rdi + 0x3c]
add rax, rdi
cmp dword [rax], 0x4550
jne 0x2100db2f0
cmp word [rax + 0x14], 0
je 0x2100db2f0
mov r15d, dword [rax + 0x88]
lea rax, [rdi + r15]
mov qword [rbp - 0x30], rax
mov edx, dword [rax + 0x20]
mov eax, dword [rax + 0x18]
test eax, eax
je 0x2100db2f0
lea rbx, [rax*4]
xor r15d, r15d
lea rsi, [rdi + rdx]
jmp 0x2100db1bd
add r15, 4
cmp rbx, r15
je 0x2100db2f0
mov edx, dword [rsi + r15]
mov rcx, r12
add rdx, rdi
call sym.msys_2.0.dll_strcmp
test eax, eax
jne 0x2100db1b0
mov r14, rdi
mov rdi, r15
mov r15, qword [rbp - 0x30]
lea r9, [r14 + rdi]
mov eax, dword [r15 + 0x1c]
mov eax, dword [r9 + rax]
lea r12, [r14 + rax]
jmp 0x2100daf0b
mov r13, qword [rbp - 0x30]
mov r8d, 4
mov edx, 8
mov rcx, r14
mov r9, r13
call sym.VirtualProtect
test eax, eax
je 0x2100db09b
mov rax, qword [rbp + 0x58]
mov r15, qword [r14]
mov r9, r13
mov edx, 8
mov r8d, dword [rbp - 0x14]
mov rcx, r14
mov qword [r14], rax
call sym.VirtualProtect
test r15, r15
je 0x2100db09b
mov rax, qword [0x21023d810]
mov r11, r15
add rax, 0x4958
mov rbx, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x2100db249
mov ecx, 0xb
mov edx, 0x18
mov r12, r11
call sym.cmalloc_abort
mov rsi, qword [rbp + 0x58]
cmp qword [rbp - 0x40], 0
mov qword [rbx + 0x10], rax
mov rcx, qword [rbp - 0x40]
mov qword [rax], r14
mov qword [rax + 8], rsi
mov qword [rax + 0x10], 0
je 0x2100daf0b
call sym.UnmapViewOfFile
jmp 0x2100daf0b
mov eax, dword [rdi + 0x24]
add rdi, 0x14
mov r8d, 3
test eax, eax
jne 0x2100dafd0
jmp 0x2100db0ef
mov dword [rsp + 0x28], eax
lea r10, [rbp - 0x10]
mov r9d, edx
lea rcx, [rbp - 8]
mov dword [rsp + 0x20], r11d
mov r8, rdi
mov rdx, r10
call sym.remap__IMAGE_IMPORT_DESCRIPTOR__long__void__unsigned_int__unsigned_int__unsigned_int_
mov qword [rbp - 0x40], rax
test rax, rax
je 0x2100daf08
mov rdi, qword [rbp - 8]
jmp 0x2100daf78
sub r14, 1
cmp r14d, 2
ja 0x2100daf08
mov r12, qword [rbp + 0x50]
test r14, r14
je 0x2100db140
mov r8, r12
mov r12, qword [rbp - 0x28]
mov r9, qword [r13 + r14*8]
lea rdx, str.__s_s
mov rcx, r12
call sym.__small_sprintf
jmp 0x2100db140
cmp qword [rbp + 0x58], 0
jne 0x2100db116
jmp 0x2100daf08
lea r8, [rbp - 0x18]
call sym.rvadelta__IMAGE_NT_HEADERS64__unsigned_int__unsigned_int_
mov qword [rbp - 0x10], rax
test rax, rax
js 0x2100daf08
sub edx, eax
jmp 0x2100daf51
mov rcx, qword [rbp - 0x40]
lea r12, str.found_it
test rcx, rcx
jne 0x2100db28d
jmp 0x2100daf0b
xor r8d, r8d
jmp 0x2100db0ef