Function at 0x140004090
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 r13, r8
mov r15, rdx
mov r12, rcx
mov rsi, qword [rbp + 0xb0]
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x68], rax
call fcn.14003e960
mov r14d, eax
xor dil, dil
cmp byte [rbp + 0xc8], dil
je 0x1400041c5
lea rcx, [rsp + 0x78]
call fcn.140011580
nop
movzx r9d, byte [rbp + 0xc0]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
mov ecx, r14d
call fcn.140004930
test al, al
je 0x140004187
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140004187
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
call fcn.140009bb0
test eax, eax
je 0x14000416f
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x60]
call fcn.140009c70
test eax, eax
je 0x140004157
mov dil, 1
jmp 0x1400041af
mov word [rbp + 0x30], 0x3231
mov byte [rbp + 0x32], 0
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140010a40
jmp 0x1400041af
mov word [rbp + 0x31], 0x31
mov byte [rbp + 0x30], 0x31
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140010a40
jmp 0x1400041af
mov word [rbp + 0x31], 0x5f30
mov byte [rbp + 0x33], 0
mov byte [rbp + 0x30], 0x31
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 0x1400041c5
xor al, al
jmp 0x1400044f7
mov eax, 0x5a4d
cmp word [r12], ax
jne 0x1400044a8
movsxd rdi, dword [r12 + 0x3c]
add rdi, r12
cmp dword [rdi], 0x4550
jne 0x1400044a0
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 0x14000420a
test eax, eax
jne 0x1400041be
mov edx, 0x8664
cmp cx, dx
jne 0x140004219
cmp eax, 6
jne 0x1400041be
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 r14d, r14d
mov word [rbp], r14w
lea rax, [rsp + 0x78]
cmp byte [rbp + 0xc8], r14b
je 0x14000427f
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov r8, r13
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call fcn.1400437e0
jmp 0x140004298
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov rdx, r13
mov rcx, r15
call fcn.140009d20
test eax, eax
je 0x140004486
mov edx, 0xc
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 0x140004462
mov rdx, qword [r15 + 0x88]
add rdx, 0x10
lea r8, [rbp - 0x58]
mov rcx, qword [rsp + 0x78]
call fcn.140009f80
mov dword [rsp + 0x60], 0x5f3777
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140010a40
mov eax, dword [rbp - 0x58]
mov word [rbp + 0x30], 0x6d69
lea rdx, [rbp + 0x30]
mov rcx, rsi
cmp rax, qword [rdi + 0x30]
jne 0x14000431e
mov word [rbp + 0x32], 0x6f67
mov word [rbp + 0x35], 0x5f
mov byte [rbp + 0x34], 0x6f
jmp 0x140004329
mov dword [rbp + 0x33], 0x5f6666
mov byte [rbp + 0x32], 0x67
call fcn.140010a40
mov rdx, qword [rbp - 0x58]
mov eax, edx
cmp rax, qword [rdi + 0x30]
jne 0x14000436b
mov rcx, qword [rsp + 0x78]
call fcn.1400438e0
lea rdx, [rbp + 0x30]
mov rcx, rsi
test eax, eax
jne 0x140004358
mov dword [rbp + 0x30], 0x637573
jmp 0x140004366
mov word [rbp + 0x31], 0x6666
mov byte [rbp + 0x33], r14b
mov byte [rbp + 0x30], 0x66
call fcn.140010a40
mov eax, 4
mov ecx, 0x40
cmp byte [rbp + 0xb8], r14b
cmovne eax, ecx
mov r8d, dword [rdi + 0x50]
mov dword [rsp + 0x20], eax
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rsp + 0x78]
call fcn.14000a040
mov r14, rax
test rax, rax
je 0x140004440
mov r9d, dword [rdi + 0x54]
mov r8, r12
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.14000a100
movzx eax, word [rdi + 0x14]
xor ecx, ecx
mov esi, ecx
cmp cx, word [rdi + 6]
jae 0x1400043f8
lea rbx, [rdi + 0x2c]
add rbx, rax
nop word [rax + rax]
mov r9d, dword [rbx - 4]
mov r8d, dword [rbx]
add r8, r12
mov edx, dword [rbx - 8]
add rdx, r14
mov rcx, qword [rsp + 0x78]
call fcn.14000a100
add rbx, 0x28
inc esi
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x1400043d0
mov rdx, qword [r15 + 0x88]
add rdx, 0x10
mov r9d, 8
lea r8, [rdi + 0x30]
mov rcx, qword [rsp + 0x78]
call fcn.14000a100
mov eax, dword [rdi + 0x28]
add rax, r14
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 0x1400044c0
mov word [rbp + 0x30], 0x3831
mov byte [rbp + 0x32], 0
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140010a40
mov rcx, qword [rsp + 0x78]
call fcn.14000a300
jmp 0x1400044be
mov word [rbp + 0x30], 0x3731
mov byte [rbp + 0x32], r14b
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140010a40
mov rcx, qword [rsp + 0x78]
call fcn.14000a300
xor bl, bl
jmp 0x1400044c3
mov word [rbp + 0x31], VarI2FromBool
mov byte [rbp + 0x30], 0x31
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140010a40
xor bl, bl
jmp 0x1400044c3
mov word [rbp + 0x30], 0x3531
jmp 0x1400044ae
mov word [rbp + 0x30], 0x3431
mov byte [rbp + 0x32], 0
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140010a40
xor bl, bl
xor r14d, r14d
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400044d1
call fcn.14000a3a0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400044e5
call fcn.140008ae0
mov qword [rsp + 0x68], r14
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400044f4
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