Function at 0x140004520
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov rax, qword [0x140068088]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rbx, r9
mov r12, r8
mov r15, rdx
mov r14, rcx
mov r13, qword [rbp + 0xb0]
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call fcn.14003e960
mov esi, eax
xor dil, dil
cmp byte [rbp + 0xc8], dil
je 0x14000463e
lea rcx, [rsp + 0x78]
call fcn.140011580
nop
movzx r9d, byte [rbp + 0xc0]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
mov ecx, esi
call fcn.140004930
test al, al
je 0x140004607
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140004607
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
call fcn.140009bb0
test eax, eax
je 0x1400045ef
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140009c70
test eax, eax
je 0x1400045e7
mov dil, 1
jmp 0x140004628
mov word [rbp + 0x30], 0x3231
jmp 0x1400045f5
mov word [rbp + 0x30], 0x3131
mov byte [rbp + 0x32], 0
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140010a40
jmp 0x140004628
mov dword [rbp + 0x30], 0x5f3031
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140010a40
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.140010c50
nop
lea rcx, [rsp + 0x78]
call fcn.14000ce50
test dil, dil
jne 0x14000463e
xor al, al
jmp 0x140004909
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x1400048b5
movsxd rdi, dword [r14 + 0x3c]
add rdi, r14
cmp dword [rdi], 0x4550
jne 0x1400048a9
lea rdx, [rbp - 0x68]
mov rcx, r15
call fcn.140009090
movzx ecx, word [rdi + 4]
mov edx, 0x14c
mov eax, dword [rbp - 0x68]
cmp cx, dx
jne 0x140004681
test eax, eax
jne 0x140004637
mov edx, 0x8664
cmp cx, dx
jne 0x140004690
cmp eax, 6
jne 0x140004637
mov edx, 0x18
lea rcx, [rsp + 0x78]
call fcn.140010d60
mov edx, 0x68
lea rcx, [rbp - 0x40]
call fcn.140010d60
mov dword [rbp - 0x40], edx
mov dword [rbp - 4], 0x101
xor esi, esi
mov word [rbp], si
lea rax, [rsp + 0x78]
cmp byte [rbp + 0xc8], sil
je 0x1400046f5
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov r8, r12
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call fcn.1400437e0
jmp 0x14000470e
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov rdx, r12
mov rcx, r15
call fcn.140009d20
test eax, eax
je 0x14000488f
mov edx, 8
call fcn.140009e20
mov r15, rax
mov dword [rax + 0x30], 0x100002
mov rdx, rax
mov rcx, qword [rbp - 0x80]
call fcn.140009ed0
test eax, eax
je 0x14000486b
mov rdx, qword [r15 + 0x88]
add rdx, 0x10
lea r8, [rbp - 0x58]
mov rcx, qword [rsp + 0x78]
call fcn.140009f80
mov eax, dword [rbp - 0x58]
lea rdx, [rbp + 0x30]
mov rcx, r13
cmp rax, qword [rdi + 0x30]
jne 0x14000477a
mov dword [rbp + 0x33], 0x5f6f6f
mov word [rbp + 0x31], 0x676d
mov byte [rbp + 0x30], 0x69
jmp 0x14000478b
mov dword [rbp + 0x33], 0x5f6666
mov word [rbp + 0x30], 0x6d69
mov byte [rbp + 0x32], 0x67
call fcn.140010a40
mov eax, 4
mov ecx, 0x40
cmp byte [rbp + 0xb8], sil
cmovne eax, ecx
mov r8d, dword [rdi + 0x50]
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.14000a040
mov qword [rbp - 0x60], rax
test rax, rax
je 0x14000485f
mov r9d, dword [rdi + 0x54]
mov r8, r14
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.14000a100
movzx eax, word [rdi + 0x14]
xor ecx, ecx
cmp cx, word [rdi + 6]
jae 0x140004819
lea rbx, [rdi + 0x2c]
add rbx, rax
nop dword [rax]
mov r9d, dword [rbx - 4]
mov r8d, dword [rbx]
add r8, r14
mov edx, dword [rbx - 8]
add rdx, qword [rbp - 0x60]
mov rcx, qword [rsp + 0x78]
call fcn.14000a100
add rbx, 0x28
inc esi
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x1400047f0
mov rdx, qword [r15 + 0x88]
add rdx, 0x10
mov r9d, 8
lea r8, [rbp - 0x60]
mov rcx, qword [rsp + 0x78]
call fcn.14000a100
mov eax, dword [rdi + 0x28]
add rax, qword [rbp - 0x60]
mov qword [r15 + 0x80], rax
mov rdx, r15
mov rcx, qword [rbp - 0x80]
call fcn.14000a1b0
mov rcx, qword [rbp - 0x80]
call fcn.14000a260
mov bl, 1
jmp 0x1400048cd
mov word [rbp + 0x30], 0x3831
mov byte [rbp + 0x32], sil
jmp 0x140004875
mov word [rbp + 0x31], reloc.OLEAUT32.dll_VarI2FromBool
mov byte [rbp + 0x30], 0x31
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140010a40
mov rcx, qword [rsp + 0x78]
call fcn.14000a300
xor bl, bl
jmp 0x1400048cf
mov word [rbp + 0x30], 0x3631
mov byte [rbp + 0x32], sil
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140010a40
xor bl, bl
jmp 0x1400048cf
mov word [rbp + 0x30], 0x3531
mov byte [rbp + 0x32], 0
jmp 0x1400048bf
mov word [rbp + 0x31], VarI2FromBool
mov byte [rbp + 0x30], 0x31
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140010a40
xor bl, bl
xor esi, esi
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400048e3
call fcn.14000a3a0
mov qword [rsp + 0x60], rsi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400048f7
call fcn.140008ae0
mov qword [rsp + 0x68], rsi
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140004906
call fcn.140008ae0
movzx eax, bl
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.140015740
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret