Function at 0x100006550
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x500
mov rax, qword [0x100017110]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov r12, rcx
mov rbx, r8
mov rbp, rdx
lea rcx, [rsp + 0xf4]
xor edi, edi
xor edx, edx
mov r8d, 0x1fa
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0xf0], edi
call sub.msvcrt.dll_memset
mov r14d, 0xff
lea rdx, [0x100001638]
lea rcx, [rsp + 0xf0]
mov r8d, r14d
call fcn.10000c184
lea rcx, [rsp + 0x2f2]
xor edx, edx
mov r8d, 0x1fc
mov word [rsp + 0x2f0], di
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x2f0]
mov r8d, r14d
mov rdx, rbp
call fcn.10000c184
lea rdx, [0x10000185c]
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.msvcrt.dll_wcstok]
or rcx, 0xffffffffffffffff
mov rdi, r12
mov r13, rax
xor eax, eax
repne scasw ax, word [rdi]
lea esi, [rax + 1]
not rcx
cmp rcx, rsi
je 0x1000066b6
lea rdx, [0x10000185c]
xor r9d, r9d
mov r8d, esi
mov rcx, rbp
call fcn.10000bba4
cmp eax, 0xffffffff
je 0x1000069e2
cdqe
lea rdi, [rbp + rax*2]
xor ebp, ebp
cmp rdi, rbp
je 0x1000069e2
lea edx, [rsi + 0x23]
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsnset]
lea rcx, [rsp + 0xf0]
mov r8d, r14d
mov rdx, r12
call fcn.10000c22c
lea rdx, [0x1000015dc]
lea rcx, [rsp + 0xf0]
mov r8d, r14d
call fcn.10000c22c
lea rcx, [rsp + 0xf0]
mov r8d, r14d
mov rdx, r13
call fcn.10000c22c
lea rcx, [rsp + 0xf0]
mov r8d, r14d
mov rdx, rdi
call fcn.10000c22c
jmp 0x1000066cb
lea rcx, [rsp + 0xf0]
mov r8d, r14d
mov rdx, rbp
call fcn.10000c184
xor ebp, ebp
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0xf0]
xor r9d, r9d
mov r8d, esi
mov edx, 0x80000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x1000069e2
xor r9d, r9d
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 2]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r15, rax
mov qword [rsp + 0x48], rax
cmp rax, rbp
je 0x1000069d9
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
mov qword [rsp + 0x68], rax
cmp rax, rbp
je 0x1000069d0
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x1000069c7
movsxd r12, dword [r14 + 0x3c]
add r12, r14
cmp dword [r12], 0x4550
jne 0x1000069c7
cmp dword [rsp + 0x40], 2
movzx eax, word [r12 + 6]
lea rdi, [r12 + 0x108]
je 0x10000679d
lea rdi, [r12 + 0xf8]
mov ecx, dword [r12 + 0x38]
cmp eax, ebp
jbe 0x1000068a2
lea r13d, [rcx - 1]
mov r15d, ecx
mov qword [rsp + 0x40], rax
not r13d
xor r14d, r14d
mov eax, dword [rdi + 8]
cmp eax, r14d
jne 0x1000067c7
mov eax, dword [rdi + 0x10]
lea ebp, [rax + r15 - 1]
lea rdx, [0x100001860]
mov r8d, 4
mov rcx, rdi
and ebp, r13d
call qword [sym.imp.msvcrt.dll__strnicmp]
cmp eax, r14d
jne 0x1000067f2
add dword [rbx + 0xc], ebp
jmp 0x100006882
lea rdx, [0x100001868]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__stricmp]
cmp eax, r14d
jne 0x10000680c
add dword [rbx + 0x10], ebp
jmp 0x100006882
lea rdx, [0x100001870]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__stricmp]
cmp eax, r14d
jne 0x100006826
mov dword [rbx + 8], ebp
jmp 0x100006882
lea rdx, [0x100001878]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__stricmp]
cmp eax, r14d
jne 0x100006840
mov dword [rbx + 0x18], ebp
jmp 0x100006882
lea rdx, [0x100001880]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__stricmp]
cmp eax, r14d
jne 0x10000685a
mov dword [rbx + 0x14], ebp
jmp 0x100006882
lea rdx, [0x100001888]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__stricmp]
cmp eax, r14d
jne 0x100006874
mov dword [rbx + 0x1c], ebp
jmp 0x100006882
bt dword [rdi + 0x24], 0x1d
jae 0x10000687f
add dword [rbx], ebp
jmp 0x100006882
add dword [rbx + 4], ebp
add rdi, 0x28
sub qword [rsp + 0x40], rsi
jne 0x1000067bc
mov r13, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov r15, qword [rsp + 0x48]
xor ebp, ebp
mov eax, dword [r12 + 8]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
call qword [sym.imp.msvcrt.dll_localtime]
mov rdx, rax
cmp rax, rbp
je 0x1000069c5
movzx ecx, word [rdx + 0x14]
mov eax, 0x76c
mov dword [rsp + 0x40], ebp
add cx, ax
movzx eax, word [rdx + 8]
mov word [rsp + 0x56], bp
mov word [rsp + 0x48], cx
movzx ecx, word [rdx + 0x10]
mov word [rsp + 0x50], ax
movzx eax, word [rdx + 4]
add cx, si
mov word [rsp + 0x4a], cx
movzx ecx, word [rdx + 0x18]
mov word [rsp + 0x52], ax
movzx eax, word [rdx]
mov word [rsp + 0x4c], cx
movzx ecx, word [rdx + 0xc]
mov word [rsp + 0x4e], cx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x54], ax
call fcn.100008678
cmp dword [rsp + 0x40], esi
lea rcx, [0x100001890]
mov r9, rbp
mov ebp, 0x40
lea r8, [rsp + 0x48]
cmove r9, rcx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rcx
mov ecx, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetDateFormatW]
lea rdi, [rbx + 0x20]
lea rdx, [rsp + 0x70]
mov rcx, rdi
mov r8d, 0xff
call fcn.10000c184
xor r9d, r9d
cmp dword [rsp + 0x40], esi
lea rax, [0x1000018a8]
lea r8, [rsp + 0x48]
mov ecx, 0x400
cmove r9, rax
lea rax, [rsp + 0x70]
xor edx, edx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov ebx, 0xfe
lea rdx, [0x1000018bc]
mov rcx, rdi
mov r8d, ebx
call fcn.10000c22c
lea rdx, [rsp + 0x70]
mov r8d, ebx
mov rcx, rdi
call fcn.10000c22c
xor ebp, ebp
mov esi, ebp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.100011d00
mov rbx, qword [rsp + 0x540]
add rsp, 0x500
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret