Function at 0x4a7495
Capabilities:
Access peb ldr_data
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov dword [rsp + 0x2c], ecx
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov r15, qword [rax + 0x20]
cmp word [r15], 0x5a4d
jne 0x4a7788
movsxd rax, dword [r15 + 0x3c]
cmp dword [r15 + rax], 0x4550
jne 0x4a77ae
mov eax, dword [r15 + rax + 0x88]
mov ecx, dword [r15 + rax + 0x18]
mov qword [rsp + 0x50], rcx
mov r13d, dword [r15 + rax + 0x1c]
mov ebp, dword [r15 + rax + 0x20]
mov esi, dword [r15 + rax + 0x24]
add r13, r15
add rbp, r15
add rsi, r15
xor r12d, r12d
lea rdi, [rsp + 0x30]
cmp r12, qword [rsp + 0x50]
je 0x4a775d
mov ebx, dword [rbp + r12*4]
add rbx, r15
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.0044fb90
movzx eax, word [rsi + r12*2]
cmp qword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmovne rcx, rdx
mov r14d, dword [r13 + rax*4]
cmovne rdx, qword [rsp + 0x48]
call fcn.004a7477
cmp eax, dword [rsp + 0x2c]
jne 0x4a76af
add r14, r15
movzx eax, byte [r14]
cmp eax, 0x4c
je 0x4a760d
cmp eax, 0xe9
jne 0x4a7634
lea rax, [r14 - 0x19]
mov bx, 0xffff
mov ecx, 0x27
cmp rcx, 0x1fe7
je 0x4a7634
cmp byte [r14 + rcx - 7], 0x4c
jne 0x4a75da
cmp byte [r14 + rcx - 6], 0x8b
jne 0x4a75da
cmp byte [r14 + rcx - 5], 0xd1
jne 0x4a75da
cmp byte [r14 + rcx - 4], 0xb8
jne 0x4a75da
cmp byte [r14 + rcx - 1], 0
jne 0x4a75da
cmp byte [r14 + rcx], 0
je 0x4a76bf
cmp byte [rax - 7], 0x4c
jne 0x4a7601
cmp byte [rax - 6], 0x8b
jne 0x4a7601
cmp byte [rax - 5], 0xd1
jne 0x4a7601
cmp byte [rax - 4], 0xb8
jne 0x4a7601
cmp byte [rax - 1], 0
jne 0x4a7601
cmp byte [rax], 0
je 0x4a76d4
dec ebx
add rax, 0xffffffffffffffe0
add rcx, 0x20
jmp 0x4a759a
cmp byte [r14 + 1], 0x8b
jne 0x4a7634
cmp byte [r14 + 2], 0xd1
jne 0x4a7634
cmp byte [r14 + 3], 0xb8
jne 0x4a7634
cmp byte [r14 + 6], 0
jne 0x4a7634
cmp byte [r14 + 7], 0
je 0x4a7730
cmp byte [r14 + 3], 0xe9
jne 0x4a76af
lea rax, [r14 - 0x19]
mov bx, 0xffff
mov ecx, 0x27
cmp rcx, 0x1fe7
je 0x4a76af
cmp byte [r14 + rcx - 7], 0x4c
jne 0x4a7680
cmp byte [r14 + rcx - 6], 0x8b
jne 0x4a7680
cmp byte [r14 + rcx - 5], 0xd1
jne 0x4a7680
cmp byte [r14 + rcx - 4], 0xb8
jne 0x4a7680
cmp byte [r14 + rcx - 1], 0
jne 0x4a7680
cmp byte [r14 + rcx], 0
je 0x4a76bf
cmp byte [rax - 7], 0x4c
jne 0x4a76a3
cmp byte [rax - 6], 0x8b
jne 0x4a76a3
cmp byte [rax - 5], 0xd1
jne 0x4a76a3
cmp byte [rax - 4], 0xb8
jne 0x4a76a3
cmp byte [rax - 1], 0
jne 0x4a76a3
cmp byte [rax], 0
je 0x4a76d4
dec ebx
add rax, 0xffffffffffffffe0
add rcx, 0x20
jmp 0x4a7648
inc r12
mov rcx, rdi
call fcn.004a781e
jmp 0x4a7516
movzx eax, byte [r14 + rcx - 2]
movzx ecx, byte [r14 + rcx - 3]
shl eax, 8
add ebx, ecx
or ebx, eax
jmp 0x4a76e5
movzx ecx, byte [rax - 2]
movzx eax, byte [rax - 3]
shl ecx, 8
sub eax, ebx
or eax, ecx
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.004a781e
lea rcx, [r14 + 3]
xor eax, eax
cmp rax, 0xfe
je 0x4a7737
cmp byte [rcx + rax - 2], 0xf
jne 0x4a7711
cmp byte [rcx + rax - 1], 5
jne 0x4a7711
cmp byte [rcx + rax], 0xc3
je 0x4a7716
inc rax
jmp 0x4a76f5
lea rdx, [r14 + rax]
inc rdx
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ebx, word [r14 + 4]
jmp 0x4a76e5
lea rax, [0x005c73e8]
mov qword [rsp + 0x20], rax
lea rcx, str.____Error_retrieving_syscall_address
lea r9, [0x005c72f8]
lea r8, [rsp + 0x30]
mov edx, 0x24
jmp 0x4a7781
lea rax, [0x005c73a8]
mov qword [rsp + 0x20], rax
lea rcx, str.____Error_getting_syscall_numberOs_
lea r9, [0x005c72f8]
lea r8, [rsp + 0x30]
mov edx, 0x20
call fcn.00470d10
ud2
mov esi, 0x19
mov ecx, 0x19
call fcn.004a742f
movups xmm0, xmmword [str.____INVALID_DOS_SIGNATURE____INVALID_NT_SIGNATURE_repos_rust_1.70.0_library_std_src_io_mod.rs]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [0x005c7409]
movups xmmword [rdx + 9], xmm0
jmp 0x4a77d5
mov esi, 0x18
mov ecx, 0x18
call fcn.004a742f
movabs rcx, 0x45525554414e4749
mov qword [rdx + 0x10], rcx
movups xmm0, xmmword [0x005c7419]
movups xmmword [rdx], xmm0
lea r8, [rsp + 0x30]
mov qword [r8], rax
mov qword [r8 + 8], rdx
mov qword [r8 + 0x10], rsi
lea rax, [0x005c7370]
mov qword [rsp + 0x20], rax
lea rcx, str.____Error_exporting_DLLsyscall_src_syscall_resolve.rs
lea r9, [0x005c7318]
mov edx, 0x17
jmp 0x4a7781