Function at 0x21376f880
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, 0x428
mov rax, qword [rsp + 0x490]
cmp rcx, 0xffffffffffffffff
mov qword [rsp + 0x470], rcx
mov rdi, rdx
mov qword [rsp + 0x480], r8
mov qword [rsp + 0x488], r9
mov dword [rax], 0
mov qword [rsp + 0xa0], 0
je 0x213770160
mov edx, 1
mov ecx, 0x400
call sub.msvcrt.dll_calloc
mov rbx, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea rbp, [rsp + 0xa0]
mov r8, rdi
mov rdx, qword [rsp + 0x470]
mov r13, rax
mov r9, rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rcx, rbx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 0x400
call fcn.213761500
movsxd rsi, dword [r13 + 0x3c]
xor r9d, r9d
mov r8d, 1
mov rcx, qword [sub.msvcrt.dll_calloc]
add rsi, r13
mov edx, dword [rsi + 0x50]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
mov qword [rsp + 0x28], rbp
mov rcx, rbx
mov r8, rdi
mov r15, rax
mov qword [rsp + 0x40], 0
mov rdx, qword [rsp + 0x470]
mov qword [rsp + 0x38], 0
mov r9, r15
mov qword [rsp + 0x30], 0
mov eax, dword [rsi + 0x50]
mov qword [rsp + 0x20], rax
call fcn.213761500
movsxd rax, dword [r15 + 0x3c]
mov rcx, r15
add rax, r15
mov r10d, dword [rax + 0x88]
test r10d, r10d
je 0x213770000
mov r8d, r10d
add r8, rcx
mov eax, dword [r8 + 0x1c]
mov ebp, dword [r8 + 0x20]
mov esi, dword [r8 + 0x24]
mov r10d, dword [r8 + 0x18]
add rax, rcx
add rbp, rcx
mov qword [rsp + 0x58], rax
add rsi, rcx
test r10d, r10d
je 0x213770000
xor r10d, r10d
mov qword [rsp + 0x98], r15
xor r12d, r12d
mov r15, rcx
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r8
mov dword [rsp + 0x8c], r10d
jmp 0x21376fec8
cmp r10d, 3
je 0x213770140
cmp r10d, 4
je 0x213770240
mov rdx, qword [rbx + 0x220]
mov rcx, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov r9d, 0x30
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
test rax, rax
je 0x213770178
cmp qword [rsp + 0xc8], rdi
je 0x2137700b8
mov rcx, qword [sub.msvcrt.dll_memset]
xor r8d, r8d
mov r9d, 0x104
mov qword [rsp + 0x40], 0
lea r13, [rsp + 0xf0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rdx, r13
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
mov rdx, qword [rsp + 0x470]
mov r9, r13
mov r8, rdi
mov qword [rsp + 0x40], 0
mov rcx, qword [0x21379c5c0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x104
call fcn.213761500
test rax, rax
je 0x21377025c
mov rcx, qword [sub.msvcrt.dll_memset]
xor r8d, r8d
mov r9d, 0x104
mov qword [rsp + 0x40], 0
lea r14, [rsp + 0x200]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rdx, r14
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
mov r8, qword [rsp + 0xc8]
mov r9, r14
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rcx, qword [0x21379c5c0]
mov rdx, qword [rsp + 0x470]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x104
call fcn.213761500
test rax, rax
je 0x2137702aa
mov r8, qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rcx, r13
mov byte [rsp + 0xbc], 0
mov rax, qword [str.kernel32kernelba.text]
lea rdx, [rsp + 0xb0]
mov dword [rsp + 0xb8], 0x6c6c642e
lea r13, [rsp + 0x310]
mov qword [rsp + 0x60], r8
mov qword [rsp + 0xb0], rax
call r8
mov r8, qword [rsp + 0x60]
test rax, rax
je 0x21376fc9f
mov rax, qword [0x213799768]
mov rcx, r14
mov byte [rsp + 0x31e], 0
lea r13, [rsp + 0x310]
mov dword [rsp + 0x318], 0x642e6573
mov rdx, r13
mov qword [rsp + 0x310], rax
mov eax, 0x6c6c
mov word [rsp + 0x31c], ax
call r8
test rax, rax
jne 0x2137700b8
mov rcx, qword [sub.msvcrt.dll_memset]
xor r8d, r8d
mov r9d, 0x104
mov rdx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
mov r8, qword [rsp + 0xc8]
mov r9, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rcx, qword [0x21379c5c0]
mov rdx, qword [rsp + 0x470]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x104
call fcn.213761500
test rax, rax
je 0x2137702f8
mov rcx, qword [0x21379c9a0]
lea r14, [rbx + 0x11c]
mov r9d, 0x103
mov r8, r13
mov qword [rsp + 0x40], 0
mov rdx, r14
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x40], 0
mov rcx, qword [sub.msvcrt.dll_strlen]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
test rax, rax
je 0x21376fe78
mov rcx, qword [sub.msvcrt.dll_memset]
xor r8d, r8d
mov r9d, 0x104
mov rdx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
mov rdx, qword [rsp + 0x470]
mov r9, r13
mov r8, rdi
mov qword [rsp + 0x40], 0
mov rcx, qword [0x21379c5c0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x104
call fcn.213761500
test rax, rax
je 0x213770346
mov rdx, r13
mov rcx, r14
call fcn.21376f670
test eax, eax
jne 0x2137700b8
mov rax, qword [rsp + 0x80]
cmp rax, qword [rsp + 0x488]
jae 0x21376fea2
mov rcx, qword [rsp + 0x480]
mov qword [rcx + rax*8], rbx
add rax, 1
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x490]
add dword [rax], 1
mov rax, qword [rsp + 0x78]
add r12d, 1
add rsi, 2
add rbp, 4
cmp r12d, dword [rax + 0x18]
jae 0x21376ffe8
movzx eax, word [rsi]
mov qword [rsp + 0xa8], 0
mov rbx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x70]
mov r14d, dword [rbp]
mov r13d, dword [rbx + rax*4]
add r13, r15
mov rcx, r13
call fcn.21376f480
cmp eax, 1
mov dword [rsp + 0x60], eax
jbe 0x21376fead
call fcn.21376ef60
mov rcx, qword [sub.msvcrt.dll_memset]
xor r8d, r8d
mov r9d, 0x104
mov qword [rsp + 0x40], 0
lea rdx, [rax + 0x18]
mov rbx, rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x68], rdx
call fcn.213761500
mov rcx, qword [0x21379c9a0]
mov r9d, 0x103
mov qword [rsp + 0x40], 0
mov rdx, qword [rsp + 0x68]
lea r8, [r14 + r15]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
movzx eax, word [rsi]
mov qword [rbx], rdi
mov rcx, qword [rsp + 0x58]
mov r10d, dword [rsp + 0x60]
mov word [rbx + 8], ax
mov eax, dword [rcx + rax*4]
add rax, rdi
cmp r10d, 2
mov qword [rbx + 0x10], rax
jne 0x21376fa50
mov rcx, qword [rsp + 0xa8]
movsxd rdx, dword [r13 + rcx]
lea rax, [rax + rcx + 4]
add rdx, rax
mov qword [rbx + 0x220], rdx
jmp 0x21376fa6b
mov r13, qword [rsp + 0x90]
mov r15, qword [rsp + 0x98]
mov r10d, dword [rsp + 0x8c]
cmp qword [rsp + 0x470], 0xffffffffffffffff
je 0x21377009c
mov rbx, qword [fcn.213785958]
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rcx, rbx
mov dword [rsp + 0x58], r10d
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x40], 0
mov rcx, rbx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
mov r10d, dword [rsp + 0x58]
mov eax, r10d
add rsp, 0x428
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
mov rcx, qword [sym.imp.KERNEL32.dll_HeapFree]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x40], 0
mov rdx, rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
jmp 0x21376fead
mov rdx, qword [rsp + 0xa8]
mov edx, dword [rax + rdx]
mov qword [rbx + 0x220], rdx
jmp 0x21376fa6b
movsxd rax, dword [rdx + 0x3c]
mov rcx, rdx
xor r15d, r15d
xor r13d, r13d
add rax, rdx
jmp 0x21376f9c9
mov rax, qword [rsp + 0x80]
cmp rax, qword [rsp + 0x488]
jae 0x2137701a2
mov rcx, qword [rsp + 0x480]
mov qword [rcx + rax*8], rbx
add rax, 1
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x490]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
add dword [rax], 1
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
mov rcx, qword [sym.imp.KERNEL32.dll_HeapFree]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x40], 0
mov rdx, rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
mov dword [rsp + 0x8c], 4
jmp 0x21376fead
mov rdx, qword [rsp + 0xa8]
mov edx, dword [rax + rdx]
mov rdx, qword [rax + rdx + 6]
mov qword [rbx + 0x220], rdx
jmp 0x21376fa6b
mov rcx, qword [0x21379c9a0]
mov r9d, 0x103
mov rdx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea r8, str._not_found_
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
jmp 0x21376fb66
mov rcx, qword [0x21379c9a0]
mov r9d, 0x103
mov rdx, r14
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea r8, str._not_found_
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
jmp 0x21376fc08
mov rcx, qword [0x21379c9a0]
mov r9d, 0x103
mov rdx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea r8, str._not_found_
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
jmp 0x21376fd39
mov rcx, qword [0x21379c9a0]
mov r9d, 0x103
mov rdx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea r8, str._not_found_
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.213761500
jmp 0x21376fe65