Function at 0x140001730
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push r12
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rax, qword [rcx + 0x20]
xor r14d, r14d
mov r9d, dword [rcx + 8]
mov r8d, r14d
mov rbx, qword [rcx]
mov r12, qword [rcx + 0x10]
mov rsi, qword [rcx + 0x18]
mov qword [rbp - 0x29], rax
mov rax, qword [rcx + 0x28]
mov qword [rbp - 0x39], rax
mov rax, qword [rcx + 0x30]
mov qword [rbp - 0x31], rax
mov rax, qword [rcx + 0x38]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], r14
cmp r9, 0x40
jbe 0x140001b4d
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140001b4d
movsxd rcx, dword [rbx + 0x3c]
lea rax, [rcx + 0x108]
cmp r9, rax
jb 0x140001b4d
cmp dword [rcx + rbx], 0x4550
mov qword [rsp + 0xe0], r13
lea r13, [rcx + rbx]
jne 0x140001b45
movzx eax, word [r13 + 0x16]
mov ecx, 0x2002
and ax, cx
cmp ax, cx
jne 0x140001b45
mov eax, 0xf0
cmp word [r13 + 0x14], ax
jne 0x140001b45
movzx r10d, word [r13 + 6]
lea r11, [r13 + 0x118]
mov edx, r14d
test r10d, r10d
je 0x140001829
mov rcx, r11
nop dword [rax]
mov eax, dword [rcx + 4]
add eax, dword [rcx]
cmp eax, r9d
ja 0x140001b45
inc edx
add rcx, 0x28
cmp edx, r10d
jl 0x140001810
mov eax, dword [r13 + 0x54]
xor edx, edx
dec eax
mov qword [rsp + 0xd8], rdi
mov edi, dword [r13 + 0x38]
add eax, edi
div edi
mov r9d, eax
imul r9d, edi
test r10d, r10d
je 0x14000187f
nop dword [rax]
mov ecx, dword [r11 - 8]
lea eax, [rdi - 1]
cmp dword [r11], ecx
cmovg ecx, dword [r11]
xor edx, edx
add ecx, dword [r11 - 4]
lea r11, [r11 + 0x28]
add eax, ecx
div edi
imul eax, edi
cmp r9d, eax
cmovge eax, r9d
mov r9d, eax
sub r10, 1
jne 0x140001850
test r9d, r9d
je 0x140001b3d
movsxd rax, r9d
lea rdx, [rbp - 0x19]
lea r9, [rbp - 1]
mov dword [rsp + 0x28], 0x40
mov rcx, 0xffffffffffffffff
mov qword [rbp - 1], rax
mov dword [rsp + 0x20], 0x1000
call rsi
mov r8, qword [rbp - 0x19]
test r8, r8
je 0x140001b3d
movzx eax, word [r13 + 6]
lea ecx, [rax + rax*4]
mov eax, dword [r13 + 0x54]
lea ecx, [rax + rcx*8]
movsxd rdx, ecx
test ecx, ecx
jle 0x1400018f4
mov rcx, r14
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
mov byte [rcx + r8], al
inc rcx
mov r8, qword [rbp - 0x19]
cmp rcx, rdx
jl 0x1400018e0
mov r11d, r14d
cmp r14w, word [r13 + 6]
jae 0x14000194d
lea rdx, [r13 + 0x118]
mov eax, dword [rdx - 4]
test eax, eax
je 0x14000193c
mov r10d, dword [rdx]
test r10d, r10d
je 0x14000193c
lea r9, [r8 + rax]
mov rcx, r14
nop dword [rax + rax]
mov eax, dword [rdx + 4]
add rax, rcx
movzx eax, byte [rax + rbx]
mov byte [r9 + rcx], al
inc rcx
mov eax, dword [rdx]
cmp rcx, rax
jb 0x140001920
mov r8, qword [rbp - 0x19]
movzx eax, word [r13 + 6]
inc r11d
add rdx, 0x28
cmp r11d, eax
jl 0x140001905
mov eax, dword [r13 + 0xb0]
mov qword [rsp + 0xe8], r15
test eax, eax
je 0x140001a09
cmp dword [r13 + 0xb4], r14d
jbe 0x140001a09
mov ecx, dword [r8 + rax]
lea r10, [r8 + rax]
mov r9d, dword [r10 + 4]
mov rbx, r8
sub rbx, qword [r13 + 0x30]
add ecx, r9d
je 0x140001a09
mov esi, 0xf000
mov edi, 0xa000
mov r15d, 0x3000
nop dword [rax]
mov eax, r9d
mov rdx, r14
sub rax, 8
shr rax, 1
movsxd r11, eax
test eax, eax
jle 0x1400019f6
nop dword [rax]
nop dword [rax + rax]
movzx r9d, word [r10 + rdx*2 + 8]
movzx eax, r9w
and ax, si
cmp ax, r15w
je 0x1400019d8
cmp ax, di
jne 0x1400019ee
mov ecx, dword [r10]
and r9d, reloc.mfc140u.dll_COleBusyDialog::DoModal
lea rax, [r8 + r9]
add qword [rcx + rax], rbx
mov r8, qword [rbp - 0x19]
inc rdx
cmp rdx, r11
jl 0x1400019c0
mov eax, dword [r10 + 4]
add r10, rax
mov ecx, dword [r10]
mov r9d, dword [r10 + 4]
add ecx, r9d
jne 0x1400019a0
mov eax, dword [r13 + 0x90]
test rax, rax
je 0x140001b35
lea r15, [rax + r8]
mov eax, dword [rax + r8]
test eax, eax
je 0x140001b11
mov rdi, qword [rbp - 0x39]
xor edx, edx
nop
mov r14d, dword [r15 + 0x10]
lea rcx, [rbp + 7]
mov qword [rbp - 0x11], rdx
add r14, r8
mov edx, dword [r15 + 0xc]
mov esi, eax
add rdx, r8
add rsi, r8
call rdi
mov r8b, 1
lea rdx, [rbp + 7]
lea rcx, [rbp + 0x17]
call qword [rbp - 0x31]
lea r9, [rbp - 0x11]
xor edx, edx
lea r8, [rbp + 0x17]
xor ecx, ecx
call qword [rbp - 0x29]
lea rcx, [rbp + 0x17]
call qword [rbp - 0x21]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140001b31
mov rax, qword [rsi]
xor edx, edx
mov ebx, edx
test rax, rax
je 0x140001afd
mov edi, edx
nop dword [rax]
mov qword [rbp - 9], rdx
test rax, rax
jns 0x140001aaa
test ax, ax
je 0x140001b31
movzx r8d, ax
xor edx, edx
jmp 0x140001ac9
mov r8, qword [rbp - 0x19]
lea rdx, [r8 + 2]
add rdx, rax
je 0x140001b35
lea rcx, [rbp + 7]
call qword [rbp - 0x39]
mov rcx, qword [rbp - 0x11]
lea rdx, [rbp + 7]
xor r8d, r8d
lea r9, [rbp - 9]
call r12
mov rax, qword [rbp - 9]
test rax, rax
je 0x140001b31
inc rbx
mov qword [rdi + r14], rax
xor edx, edx
lea rdi, [rbx*8]
mov rax, qword [rdi + rsi]
test rax, rax
je 0x140001af9
mov rcx, qword [rbp - 0x11]
jmp 0x140001a90
mov rdi, qword [rbp - 0x39]
mov eax, dword [r15 + 0x14]
add r15, 0x14
mov r8, qword [rbp - 0x19]
test eax, eax
jne 0x140001a30
mov eax, dword [r13 + 0x28]
mov edx, 1
mov qword [r13 + 0x30], r8
mov rcx, qword [rbp - 0x19]
add rax, rcx
mov r8, rcx
mov qword [0x14000aa10], rax
call rax
mov r8, qword [rbp - 0x19]
mov r15, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xe0]
mov rax, r8
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140003270
add rsp, 0xa0
pop r14
pop r12
pop rsi
pop rbx
pop rbp
ret