Function at 0x140012420
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 - 0x48], 0xfffffffffffffffe
mov rax, qword [0x14006f0c0]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rbx, r9
mov r13, r8
mov r15, rdx
mov r14, rcx
mov rax, qword [rbp + 0xb0]
mov qword [rbp - 0x58], rax
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call fcn.140041f10
mov esi, eax
xor dil, dil
movzx r12d, byte [rbp + 0xc8]
test r12b, r12b
je 0x14001255f
lea rcx, [rsp + 0x78]
call fcn.140019d00
nop
movzx r9d, byte [rbp + 0xc0]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
mov ecx, esi
call fcn.1400039a0
test al, al
je 0x140012528
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140012528
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0x2000000
call fcn.1400104e0
test eax, eax
je 0x140012510
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140004f10
test eax, eax
je 0x140012508
mov dil, 1
jmp 0x140012549
mov word [rbp + 0x30], 0x3231
jmp 0x140012516
mov word [rbp + 0x30], 0x3131
mov byte [rbp + 0x32], 0
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.14001bf50
jmp 0x140012549
mov dword [rbp + 0x30], 0x5f3031
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.14001bf50
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.14001be60
nop
lea rcx, [rsp + 0x78]
call fcn.140018180
test dil, dil
jne 0x14001255f
xor al, al
jmp 0x140012889
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x140012831
movsxd rdi, dword [r14 + 0x3c]
add rdi, r14
cmp dword [rdi], 0x4550
jne 0x140012825
lea rdx, [rbp - 0x68]
mov rcx, r15
call fcn.14000b1b0
movzx ecx, word [rdi + 4]
mov edx, 0x14c
mov eax, dword [rbp - 0x68]
cmp cx, dx
jne 0x1400125a2
test eax, eax
jne 0x140012558
mov edx, 0x8664
cmp cx, dx
jne 0x1400125b1
cmp eax, 6
jne 0x140012558
mov edx, 0x18
lea rcx, [rsp + 0x78]
call fcn.14001d130
mov edx, 0x68
lea rcx, [rbp - 0x40]
call fcn.14001d130
mov dword [rbp - 0x40], 0x68
mov dword [rbp - 4], 0x101
xor esi, esi
mov word [rbp], si
lea rax, [rsp + 0x78]
xor r9d, r9d
test r12b, r12b
je 0x140012633
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000404
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r8, r13
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call fcn.14000b770
jmp 0x140012669
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x8000004
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rdx, r13
mov rcx, r15
call fcn.14000b8a0
test eax, eax
je 0x140012819
mov esi, 4
mov r9d, esi
lea edx, [rsi + 4]
xor ecx, ecx
mov r8d, 0x1000
call fcn.140015220
mov r15, rax
mov dword [rax + 0x30], 0x100002
mov rdx, rax
mov rcx, qword [rbp - 0x80]
call fcn.14000b6c0
test eax, eax
je 0x14001280d
mov rdx, qword [r15 + 0x88]
add rdx, 0x10
mov qword [rsp + 0x20], r12
lea r9d, [rsi + 4]
lea r8, [rbp - 0x50]
mov rcx, qword [rsp + 0x78]
call fcn.14000c300
mov eax, dword [rbp - 0x50]
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp - 0x58]
cmp rax, qword [rdi + 0x30]
jne 0x1400126ed
mov dword [rbp + 0x33], 0x5f6f6f
mov word [rbp + 0x31], 0x676d
mov byte [rbp + 0x30], 0x69
jmp 0x1400126fe
mov dword [rbp + 0x33], 0x5f6666
mov word [rbp + 0x30], 0x6d69
mov byte [rbp + 0x32], 0x67
call fcn.14001bf50
mov eax, 0x40
cmp byte [rbp + 0xb8], 0
cmovne esi, eax
mov r8d, dword [rdi + 0x50]
mov dword [rsp + 0x20], esi
xor edx, edx
mov r9d, 0x3000
mov rcx, qword [rsp + 0x78]
call fcn.140045080
mov qword [rbp - 0x60], rax
test rax, rax
je 0x1400127e9
mov r9d, dword [rdi + 0x54]
mov qword [rsp + 0x20], r12
mov r8, r14
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140044b10
movzx eax, word [rdi + 0x14]
mov esi, r12d
cmp r12w, word [rdi + 6]
jae 0x14001279e
lea rbx, [rdi + 0x2c]
add rbx, rax
nop word [rax + rax]
mov r9d, dword [rbx - 4]
mov r8d, dword [rbx]
add r8, r14
mov edx, dword [rbx - 8]
add rdx, qword [rbp - 0x60]
mov qword [rsp + 0x20], r12
mov rcx, qword [rsp + 0x78]
call fcn.140044b10
add rbx, 0x28
inc esi
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x140012770
mov rdx, qword [r15 + 0x88]
add rdx, 0x10
mov qword [rsp + 0x20], r12
mov r9d, 8
lea r8, [rbp - 0x60]
mov rcx, qword [rsp + 0x78]
call fcn.140044b10
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.140005f80
mov rcx, qword [rbp - 0x80]
call fcn.140045600
mov bl, 1
jmp 0x140012849
mov word [rbp + 0x30], 0x3831
mov byte [rbp + 0x32], 0
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.14001bf50
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.140014ce0
jmp 0x140012847
mov word [rbp + 0x31], 0x37
mov byte [rbp + 0x30], 0x31
jmp 0x1400127f3
mov word [rbp + 0x30], 0x3631
mov byte [rbp + 0x32], sil
jmp 0x14001283b
mov word [rbp + 0x30], 0x3531
mov byte [rbp + 0x32], 0
jmp 0x14001283b
mov word [rbp + 0x31], 0x34
mov byte [rbp + 0x30], 0x31
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.14001bf50
xor bl, bl
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140012861
call fcn.140005ef0
xor esi, esi
mov qword [rsp + 0x60], rsi
jmp 0x140012863
xor esi, esi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140012877
call fcn.1400452a0
mov qword [rsp + 0x68], rsi
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140012886
call fcn.1400452a0
movzx eax, bl
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1400239e0
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret