Function at 0x412840
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, 0x98
xor r15d, r15d
lea r14, [0x00423df0]
mov qword [rsp + 0xe8], rdx
mov rbp, rcx
mov edx, 0x1743e09
lea rcx, [0x00423e20]
mov dword [rsp + 0x6c], 0
call fcn.00412610
mov rcx, rax
call fcn.00410e20
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [0x004298e0]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [rax]
xor edx, edx
mov rcx, rax
mov r12, rax
mov rax, qword [0x004298f0]
call qword [rax]
mov esi, eax
mov rax, qword [0x00429930]
call qword [rax]
movsxd r8, esi
xor edx, edx
mov rcx, rax
mov rax, qword [0x00429920]
call qword [rax]
mov r8d, esi
lea r9, [rsp + 0x6c]
mov rcx, r12
mov rdi, rax
mov qword [rsp + 0x48], rax
mov rdx, rax
mov rax, qword [0x00429900]
mov qword [rsp + 0x20], 0
call qword [rax]
movsxd r9, dword [rdi + 0x3c]
lea r13, [rdi + r9]
mov eax, dword [r13 + 0x88]
movzx r8d, word [r13 + 0x14]
cmp word [r13 + 6], 0
mov dword [rsp + 0x58], eax
lea rax, [r13 + 0x18]
lea rdi, [rax + r8]
mov rsi, rdi
mov rbx, rdi
je 0x4129a9
mov qword [rsp + 0x50], rdi
mov r12, rax
mov rdi, r13
mov rbx, r8
jmp 0x412957
mov rsi, rbx
movzx ebx, word [rdi + 0x14]
lea eax, [r15 + r15*4]
add rbx, r12
mov ecx, 8
shl eax, 3
movzx eax, ax
add rbx, rax
call fcn.0040e560
mov edx, 0x52fda82b
mov rcx, r14
mov r13, rax
mov rax, qword [rbx]
mov qword [r13 + 0x10], rax
call fcn.00412610
mov rcx, r13
mov rdx, rax
call fcn.00410d10
test al, al
cmove rbx, rsi
add r15d, 1
cmp word [rdi + 6], r15w
ja 0x412950
mov rdi, qword [rsp + 0x50]
mov r11, qword [rsp + 0x48]
movsxd rsi, dword [rsp + 0x58]
movsxd rdx, dword [rbx + 0xc]
movsxd rax, dword [rbx + 0x14]
add rsi, r11
sub rsi, rdx
add rsi, rax
movsxd r9, dword [rsi + 0x20]
movsxd rcx, dword [rsi + 0x1c]
mov r8d, dword [rsi + 0x18]
add r9, r11
add rcx, r11
sub r9, rdx
sub rcx, rdx
add r9, rax
add rcx, rax
test r8d, r8d
jle 0x412b00
xor r14d, r14d
lea r12, [rcx + 4]
mov r15, rsi
mov rsi, rdi
sub r12, r9
mov r13d, r14d
mov rdi, r9
jmp 0x412a1e
add rdi, 4
cmp dword [r15 + 0x18], r13d
jle 0x412b00
movsxd rdx, dword [rbx + 0xc]
movsxd rax, dword [rbx + 0x14]
movsxd rcx, dword [rdi]
add rcx, qword [rsp + 0x48]
add r13d, 1
sub rcx, rdx
mov rdx, rbp
lea r14, [rcx + rax]
mov eax, dword [r12 + rdi]
mov rcx, r14
mov dword [rsp + 0x58], eax
mov eax, dword [rsi + 0xc]
mov dword [rsp + 0x50], eax
mov eax, dword [rsi + 0x14]
mov dword [rsp + 0x5c], eax
mov rax, qword [0x004299b0]
call qword [rax]
test eax, eax
jne 0x412a08
mov edx, 0x504fbbb1
lea rcx, [0x00423dc0]
mov qword [rsp + 0x70], 0
lea r12, [rsp + 0x70]
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
call fcn.00412610
mov rcx, r14
mov qword [rsp + 0x70], rax
call fcn.0040d0d0
mov edx, 0x1e8477a3
lea rcx, [0x00423d80]
mov qword [rsp + 0x78], rax
call fcn.00412610
mov edx, 3
mov rcx, r12
mov qword [rsp + 0x80], rax
call fcn.004023d0
movsxd r14, dword [rsp + 0x50]
movsxd rdx, dword [rsp + 0x58]
add rdx, qword [rsp + 0x48]
mov r8, qword [0x00420090]
sub rdx, r14
mov rcx, qword [rsp + 0xe8]
mov rbx, rdx
movsxd rdx, dword [rsp + 0x5c]
add rdx, rbx
call sub.msvcrt.dll_memcpy
mov eax, 1
jmp 0x412b02
xor eax, eax
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret