Function at 0x401000
Capabilities:
Access pe header
Contain obfuscated stackstrings
Map section object
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x308
mov rax, qword [0x00412500]
mov qword [rsp + 0x2f8], rax
mov dword [rsp + 0x1d0], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x2d8], 0
mov dword [rsp + 0x1a0], 0
lea rax, [rsp + 0x1a8]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov word [rsp + 0x248], 0
lea rax, [rsp + 0x24a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov dword [rsp + 0x148], 0
lea rax, [rsp + 0x14c]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rax, [rsp + 0x150]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov qword [rsp + 0x188], 0
mov qword [rsp + 0x240], 0
mov qword [rsp + 0x198], 0
mov qword [rsp + 0x140], 0
mov dword [rsp + 0x128], 0
mov qword [rsp + 0x120], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0x2d0], 0
mov qword [rsp + 0x190], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x1d8], 0
mov qword [rsp + 0xe8], 0
lea rax, [rsp + 0x158]
lea rcx, [0x0040c130]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x30
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x60]
lea rcx, [0x0040c120]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xa8]
lea rcx, [0x0040c0e0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x3f
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x298]
lea rcx, [0x0040c0a0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x36
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xf8]
lea rcx, [0x0040c080]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x130]
lea rcx, [0x0040c070]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x78]
lea rcx, [0x0040c040]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2a
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1e0]
lea rcx, [0x0040bfe0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x51
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0x258], 0x48
mov byte [rsp + 0x259], 0x8b
mov byte [rsp + 0x25a], 0x74
mov byte [rsp + 0x25b], 0x24
mov byte [rsp + 0x25c], 0x30
mov byte [rsp + 0x25d], 0x48
mov byte [rsp + 0x25e], 0x8b
mov byte [rsp + 0x25f], 0x7c
mov byte [rsp + 0x260], 0x24
mov byte [rsp + 0x261], 0x28
mov byte [rsp + 0x262], 0x4c
mov byte [rsp + 0x263], 0x8b
mov byte [rsp + 0x264], 0x54
mov byte [rsp + 0x265], 0x24
mov byte [rsp + 0x266], 0x38
mov byte [rsp + 0x267], 0x33
mov byte [rsp + 0x268], 0xc0
mov byte [rsp + 0x269], 0x49
mov byte [rsp + 0x26a], 0x89
mov byte [rsp + 0x26b], 2
mov byte [rsp + 0x26c], 0x49
mov byte [rsp + 0x26d], 0x83
mov byte [rsp + 0x26e], 0xea
mov byte [rsp + 0x26f], 8
mov byte [rsp + 0x270], 0x4c
mov byte [rsp + 0x271], 0x3b
mov byte [rsp + 0x272], 0xd4
mov byte [rsp + 0x273], 0x73
mov byte [rsp + 0x274], 0xf4
mov byte [rsp + 0x275], 0x48
mov byte [rsp + 0x276], 0x89
mov byte [rsp + 0x277], 0x7c
mov byte [rsp + 0x278], 0x24
mov byte [rsp + 0x279], 0x28
mov byte [rsp + 0x27a], 0x8b
mov byte [rsp + 0x27b], 0xd8
mov byte [rsp + 0x27c], 0x8b
mov byte [rsp + 0x27d], pe_nt_image_headers64
mov byte [rsp + 0x27e], 0x8b
mov byte [rsp + 0x27f], 0xe8
mov byte [rsp + 0x280], 0x4c
mov byte [rsp + 0x281], 0x8b
mov byte [rsp + 0x282], 0xd0
mov byte [rsp + 0x283], 0x4c
mov byte [rsp + 0x284], 0x8b
mov byte [rsp + 0x285], 0xd8
mov byte [rsp + 0x286], 0x4c
mov byte [rsp + 0x287], 0x8b
mov byte [rsp + 0x288], 0xe0
mov byte [rsp + 0x289], 0x4c
mov byte [rsp + 0x28a], 0x8b
mov byte [rsp + 0x28b], 0xe8
mov byte [rsp + 0x28c], 0x4c
mov byte [rsp + 0x28d], 0x8b
mov byte [rsp + 0x28e], 0xf0
mov byte [rsp + 0x28f], 0x4c
mov byte [rsp + 0x290], 0x8b
mov byte [rsp + 0x291], pe_nt_image_headers64
mov byte [rsp + 0x292], 0xff
mov byte [rsp + 0x293], 0xe6
movzx eax, byte [0x0040bfd0]
mov byte [rsp + 0x70], al
movzx eax, byte [0x0040bfd0]
mov byte [rsp + 0x50], al
lea rdx, [0x0040bf80]
lea rcx, [rsp + 0x248]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x1a0], 0x30
mov qword [rsp + 0x1a8], 0
mov dword [rsp + 0x1b8], 0x240
lea rax, [rsp + 0x248]
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x1c0], 0
mov qword [rsp + 0x1c8], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 5
lea r9, [rsp + 0x148]
lea r8, [rsp + 0x1a0]
mov edx, 0x20
lea rcx, [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov dword [rsp + 0x1d0], eax
cmp dword [rsp + 0x1d0], 0
jl 0x4014bf
mov dword [rsp + 0x2e0], 1
jmp 0x4014f5
mov eax, dword [rsp + 0x1d0]
mov dword [rsp + 0x20], eax
lea r9, [0x0040bf60]
mov r8d, 0x7b
lea rdx, [0x0040bf40]
lea rcx, [0x0040bf10]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x2e0], 0
cmp dword [rsp + 0x2e0], 0
je 0x401d8d
mov dword [rsp + 0x1a0], 0x30
mov qword [rsp + 0x1a8], 0
mov dword [rsp + 0x1b8], 0x240
mov qword [rsp + 0x1b0], 0
mov qword [rsp + 0x1c0], 0
mov qword [rsp + 0x1c8], 0
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 0x10
xor r9d, r9d
lea r8, [rsp + 0x1a0]
mov edx, 0xc
lea rcx, [rsp + 0x2d8]
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov dword [rsp + 0x1d0], eax
cmp dword [rsp + 0x1d0], 0
jl 0x4015a2
mov dword [rsp + 0x2e4], 1
jmp 0x4015d8
mov eax, dword [rsp + 0x1d0]
mov dword [rsp + 0x20], eax
lea r9, [0x0040bf60]
mov r8d, 0x8c
lea rdx, [0x0040bf40]
lea rcx, [0x0040bf10]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x2e4], 0
cmp dword [rsp + 0x2e4], 0
je 0x401d7f
mov dword [rsp + 0x48], 0x10
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x240]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x188]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [rsp + 0x1d0], eax
cmp dword [rsp + 0x1d0], 0
jl 0x40165b
mov dword [rsp + 0x2e8], 1
jmp 0x401691
mov eax, dword [rsp + 0x1d0]
mov dword [rsp + 0x20], eax
lea r9, [0x0040bf60]
mov r8d, 0x99
lea rdx, [0x0040bf40]
lea rcx, [0x0040bf10]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x2e8], 0
cmp dword [rsp + 0x2e8], 0
je 0x401d71
mov rax, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x188]
mov rax, qword [rax + 0xa8]
sub rax, rcx
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
lea r8, [rsp + 0x158]
mov rdx, rax
mov rcx, qword [rsp + 0x188]
call fcn.0040a0b0
mov qword [rsp + 0x198], rax
cmp qword [rsp + 0x198], 0
je 0x401927
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x140], rax
mov dl, 0x41
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax]
call fcn.0040ab50
movzx eax, al
test eax, eax
je 0x401927
mov dl, 0xff
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 1]
call fcn.0040ab50
movzx eax, al
test eax, eax
je 0x401927
mov dl, 0xe0
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 2]
call fcn.0040ab50
movzx eax, al
test eax, eax
je 0x401927
mov rcx, qword [rsp + 0x140]
call fcn.00406910
mov dword [rsp + 0x128], eax
mov rax, qword [rsp + 0x320]
cmp dword [rax + 0xe8], 0
jne 0x4018ad
cmp dword [rsp + 0x128], 8
jne 0x4018ad
mov dl, 0x48
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x4018ad
mov dl, 0x31
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 1]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x4018ad
mov dl, 0x84
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 2]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x4018ad
mov dl, 0xca
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 3]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x4018ad
mov rax, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x140]
mov ecx, dword [rcx + 4]
mov dword [rax + 0xe8], ecx
mov dl, 0x48
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 0xb]
call fcn.0040ab50
movzx eax, al
test eax, eax
je 0x40189e
mov dl, 0xf
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 0xc]
call fcn.0040ab50
movzx eax, al
test eax, eax
je 0x40189e
mov dl, 0xbb
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 0xd]
call fcn.0040ab50
movzx eax, al
test eax, eax
je 0x40189e
mov dl, 0xc0
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 0xe]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x4018ad
mov rax, qword [rsp + 0x320]
mov byte [rax + 0xe0], 1
cmp dword [rsp + 0x128], 6
jne 0x401905
mov dl, 0x8b
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x401905
mov dl, 0x82
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 1]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x401905
mov rax, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x140]
mov ecx, dword [rcx + 2]
mov dword [rax + 0xe4], ecx
jmp 0x401927
mov eax, dword [rsp + 0x128]
mov rcx, qword [rsp + 0x140]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x140], rax
jmp 0x401716
mov rax, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
lea r8, [rsp + 0x1e0]
mov rdx, rax
mov rcx, qword [rsp + 0x188]
call fcn.0040a0b0
mov qword [rsp + 0x198], rax
cmp qword [rsp + 0x198], 0
je 0x401a8d
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x320]
add rax, 0xa8
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ntoskrnl.exe_RtlLookupFunctionEntry]
mov qword [rsp + 0x190], rax
cmp qword [rsp + 0x190], 0
je 0x401a12
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x320]
mov rcx, qword [rcx + 0xa8]
add rcx, rax
mov rax, rcx
sub rax, qword [rsp + 0x118]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x320]
add rax, 0x110
mov r8d, 0x20
mov rdx, qword [rsp + 0x140]
mov rcx, rax
call fcn.0040a4e0
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x188]
call fcn.00406fb0
mov qword [rsp + 0xf0], rax
cmp qword [rsp + 0xf0], 0
je 0x401a8d
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf0]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0x10], ecx
jbe 0x401a66
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x2ec], eax
jmp 0x401a78
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 8]
mov dword [rsp + 0x2ec], eax
mov rax, qword [rsp + 0x320]
mov ecx, dword [rsp + 0x2ec]
mov dword [rax + 0xec], ecx
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x198], rax
cmp qword [rsp + 0x198], 0
je 0x401c30
mov rax, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x198]
call fcn.0040a0b0
mov qword [rsp + 0x198], rax
cmp qword [rsp + 0x198], 0
je 0x401c29
mov rax, qword [rsp + 0x320]
mov eax, dword [rax + 0xe4]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
lea r8, [rsp + 0xa8]
mov rdx, rax
mov rcx, qword [rsp + 0x198]
call fcn.0040a0b0
mov qword [rsp + 0x140], rax
cmp qword [rsp + 0x140], 0
je 0x401c14
mov rax, qword [rsp + 0x140]
movsxd rax, dword [rax - 4]
mov rcx, qword [rsp + 0x118]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x140]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0xf0], rax
mov rax, qword [rsp + 0x140]
movsxd rax, dword [rax + 0xa]
mov rcx, qword [rsp + 0x118]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x140]
lea rax, [rcx + rax + 0xe]
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0xf8], rax
mov rax, qword [rsp + 0x140]
movsxd rax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x118]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x140]
lea rax, [rcx + rax + 0x1c]
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x100], rax
mov rax, qword [rsp + 0x140]
movsxd rax, dword [rax + 0x26]
mov rcx, qword [rsp + 0x118]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x140]
lea rax, [rcx + rax + 0x2a]
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x108], rax
jmp 0x401c30
mov rax, qword [rsp + 0x198]
inc rax
mov qword [rsp + 0x198], rax
jmp 0x401c2b
jmp 0x401c30
jmp 0x401a9d
mov rax, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
lea r8, [rsp + 0x298]
mov rdx, rax
mov rcx, qword [rsp + 0x188]
call fcn.0040a0b0
mov qword [rsp + 0x198], rax
cmp qword [rsp + 0x198], 0
je 0x401ca3
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x140]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
lea r8, [rsp + 0xf8]
mov rdx, rax
mov rcx, qword [rsp + 0x188]
call fcn.0040a0b0
mov qword [rsp + 0x198], rax
cmp qword [rsp + 0x198], 0
je 0x401d5c
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x320]
add rax, 0xa8
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ntoskrnl.exe_RtlLookupFunctionEntry]
mov qword [rsp + 0x190], rax
cmp qword [rsp + 0x190], 0
je 0x401d5c
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x320]
add rax, qword [rcx + 0xa8]
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x18], rax
mov rdx, qword [rsp + 0x188]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rsp + 0x320]
mov rcx, qword [rax + 0xa8]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x120], rax
cmp qword [rsp + 0x120], 0
je 0x402265
mov rax, qword [rsp + 0x120]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x120]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x320]
add rax, qword [rcx + 0xa8]
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf0]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0x10], ecx
jbe 0x401e28
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x2f0], eax
jmp 0x401e3a
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 8]
mov dword [rsp + 0x2f0], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x320]
mov rcx, qword [rcx + 0xa8]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x2f0]
add rax, rcx
mov qword [rsp + 0x2d0], rax
xor eax, eax
cmp eax, 1
je 0x402265
lea r8, [rsp + 0x130]
mov rdx, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x198]
call fcn.0040a0b0
mov qword [rsp + 0x198], rax
cmp qword [rsp + 0x198], 0
je 0x40224b
mov rax, qword [rsp + 0x198]
add rax, 0x100
lea r8, [rsp + 0x78]
mov rdx, rax
mov rcx, qword [rsp + 0x198]
call fcn.0040a0b0
mov qword [rsp + 0x140], rax
cmp qword [rsp + 0x140], 0
je 0x402249
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x140]
movsxd rax, dword [rax + 0xe]
mov rcx, qword [rsp + 0x140]
lea rax, [rcx + rax + 0x12]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x320]
add rax, 0x160
mov r8d, 8
lea rdx, [rsp + 0x140]
mov rcx, rax
call fcn.0040a4e0
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x140], rax
xor eax, eax
cmp eax, 1
je 0x402247
mov rcx, qword [rsp + 0x140]
call fcn.00406910
mov dword [rsp + 0x128], eax
cmp dword [rsp + 0x128], 1
jne 0x401f91
mov dl, 0xc3
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x401f91
jmp 0x402247
cmp dword [rsp + 0x128], 7
jne 0x40216d
mov rax, qword [rsp + 0x140]
movsx eax, byte [rax]
and eax, 0xf0
cmp eax, 0x40
jne 0x4020e6
mov dl, 0x8b
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 1]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x402092
cmp qword [rsp + 0x1d8], 0
jne 0x402034
mov rax, qword [rsp + 0x140]
movsxd rax, dword [rax + 3]
mov rcx, qword [rsp + 0x140]
lea rax, [rcx + rax + 7]
mov qword [rsp + 0x1d8], rax
mov rax, qword [rsp + 0x1d8]
cmp qword [rax], 0
je 0x402026
mov rax, qword [rsp + 0x1d8]
mov rax, qword [rax]
and rax, 0xfff
test rax, rax
je 0x402032
mov qword [rsp + 0x1d8], 0
jmp 0x402090
cmp qword [rsp + 0xe8], 0
jne 0x402090
mov rax, qword [rsp + 0x140]
movsxd rax, dword [rax + 3]
mov rcx, qword [rsp + 0x140]
lea rax, [rcx + rax + 7]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
cmp qword [rax], 0
je 0x402084
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
and rax, 0xfff
test rax, rax
je 0x402090
mov qword [rsp + 0xe8], 0
jmp 0x4020e6
mov dl, 0x8d
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 1]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x4020e6
mov rax, qword [rsp + 0x320]
cmp qword [rax + 0xc8], 0
jne 0x4020e6
mov rax, qword [rsp + 0x140]
movsxd rax, dword [rax + 3]
mov rcx, qword [rsp + 0x140]
lea rax, [rcx + rax + 7]
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0xc8], rax
mov dl, 0xf
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x40216d
mov dl, 0xd
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 1]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x40216d
mov dl, 0xd
mov rax, qword [rsp + 0x140]
movzx ecx, byte [rax + 2]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x40216d
mov rax, qword [rsp + 0x320]
cmp qword [rax + 0xc8], 0
jne 0x40216d
mov rax, qword [rsp + 0x140]
movsxd rax, dword [rax + 3]
mov rcx, qword [rsp + 0x140]
lea rax, [rcx + rax + 7]
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0xc8], rax
cmp qword [rsp + 0x1d8], 0
je 0x402225
cmp qword [rsp + 0xe8], 0
je 0x402225
mov rax, qword [rsp + 0x320]
cmp qword [rax + 0xc8], 0
je 0x402225
mov rax, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx]
cmp qword [rax], rcx
jbe 0x4021ef
mov rax, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x1d8]
mov rcx, qword [rcx]
mov qword [rax + 0xb8], rcx
mov rax, qword [rsp + 0x320]
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx]
mov qword [rax + 0xc0], rcx
jmp 0x402223
mov rax, qword [rsp + 0x320]
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx]
mov qword [rax + 0xb8], rcx
mov rax, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x1d8]
mov rcx, qword [rcx]
mov qword [rax + 0xc0], rcx
jmp 0x402247
mov eax, dword [rsp + 0x128]
mov rcx, qword [rsp + 0x140]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x140], rax
jmp 0x401f4a
jmp 0x402265
jmp 0x40224d
jmp 0x402265
mov rax, qword [rsp + 0x198]
inc rax
mov qword [rsp + 0x198], rax
jmp 0x401e6c
xor r8d, r8d
lea rdx, [0x0040bef0]
mov rax, qword [rsp + 0x320]
mov rcx, qword [rax + 0xa8]
call fcn.00408330
mov qword [rsp + 0x198], rax
cmp qword [rsp + 0x198], 0
je 0x4023fe
xor eax, eax
cmp eax, 1
je 0x4023fe
mov rcx, qword [rsp + 0x198]
call fcn.00406910
mov dword [rsp + 0x128], eax
cmp dword [rsp + 0x128], 1
jne 0x4022e1
mov dl, 0xc3
mov rax, qword [rsp + 0x198]
movzx ecx, byte [rax]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x4022e1
jmp 0x4023fe
cmp dword [rsp + 0x128], 7
jne 0x4023dc
mov dl, 0x48
mov rax, qword [rsp + 0x198]
movzx ecx, byte [rax]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x4023dc
mov dl, 0x8d
mov rax, qword [rsp + 0x198]
movzx ecx, byte [rax + 1]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x4023dc
mov dl, 0xd
mov rax, qword [rsp + 0x198]
movzx ecx, byte [rax + 2]
call fcn.0040ab50
movzx eax, al
test eax, eax
jne 0x4023dc
mov rax, qword [rsp + 0x198]
movsxd rax, dword [rax + 3]
mov rcx, qword [rsp + 0x198]
lea rax, [rcx + rax + 7]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x140]
mov qword [rax + 0xd0], rcx
mov rax, qword [rsp + 0x320]
cmp dword [rax + 0xb0], 0x2580
jae 0x4023b8
mov rax, qword [rsp + 0x320]
mov rax, qword [rax + 0xd0]
mov rcx, qword [rsp + 0x320]
mov rax, qword [rax + 0x18]
mov qword [rcx + 0xd8], rax
jmp 0x4023da
mov rax, qword [rsp + 0x320]
mov rax, qword [rax + 0xd0]
mov rcx, qword [rsp + 0x320]
mov rax, qword [rax + 0x10]
mov qword [rcx + 0xd8], rax
jmp 0x4023fe
mov eax, dword [rsp + 0x128]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x198], rax
jmp 0x40229a
xor r8d, r8d
lea rdx, [0x0040bed0]
mov rax, qword [rsp + 0x320]
mov rcx, qword [rax + 0xa8]
call fcn.00408330
mov rcx, qword [rsp + 0x320]
mov qword [rcx], rax
xor r8d, r8d
lea rdx, [0x0040beb0]
mov rax, qword [rsp + 0x320]
mov rcx, qword [rax + 0xa8]
call fcn.00408330
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x150], rax
xor r8d, r8d
lea rdx, [0x0040be90]
mov rax, qword [rsp + 0x320]
mov rcx, qword [rax + 0xa8]
call fcn.00408330
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x158], rax
mov rax, qword [rsp + 0x320]
add rax, 0x268
mov r8d, 0x48
lea rdx, [0x0040abe0]
mov rcx, rax
call fcn.0040a4e0
mov rax, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x320]
mov qword [rax + 0x268], rcx
mov rax, qword [rsp + 0x320]
add rax, 0x270
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x60], rax
mov rax, qword [rsp + 0x320]
add rax, 0x2b0
mov r8d, 0x78
lea rdx, [0x0040ac20]
mov rcx, rax
call fcn.0040a4e0
mov rax, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x320]
mov qword [rax + 0x2b0], rcx
mov rax, qword [rsp + 0x320]
add rax, 0x2b8
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x68], rax
xor r8d, r8d
lea rdx, [0x0040be80]
mov rax, qword [rsp + 0x320]
mov rcx, qword [rax + 0xa8]
call fcn.00408330
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x320]
add rax, 0x1a8
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x30], rax
mov r8d, 1
lea rdx, [rsp + 0x70]
mov rax, qword [rsp + 0x320]
mov rcx, qword [rax + 0x30]
call fcn.0040a4e0
mov rax, qword [rsp + 0x320]
add rax, 0x208
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x38], rax
mov r8d, 1
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0x320]
mov rcx, qword [rax + 0x38]
call fcn.0040a4e0
xor r8d, r8d
lea rdx, [0x0040be60]
mov rax, qword [rsp + 0x320]
mov rcx, qword [rax + 0xa8]
call fcn.00408330
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x40], rax
xor r8d, r8d
lea rdx, [0x0040be40]
mov rax, qword [rsp + 0x320]
mov rcx, qword [rax + 0xa8]
call fcn.00408330
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x70], rax
xor r8d, r8d
lea rdx, [0x0040be30]
mov rax, qword [rsp + 0x320]
mov rcx, qword [rax + 0xa8]
call fcn.00408330
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x78], rax
xor r8d, r8d
lea rdx, [0x0040be20]
mov rax, qword [rsp + 0x320]
mov rcx, qword [rax + 0xa8]
call fcn.00408330
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x80], rax
mov rax, qword [rsp + 0x320]
add rax, 0x168
mov r8d, 0x3c
lea rdx, [rsp + 0x258]
mov rcx, rax
call fcn.0040a4e0
mov rax, qword [rsp + 0x320]
add rax, 0x168
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x48], rax
mov rax, qword [rsp + 0x320]
mov qword [rax + 0x50], 0x3c
mov rax, qword [rsp + 0x320]
add rax, 0x328
mov r8d, 0x50
lea rdx, [0x0040ac90]
mov rcx, rax
call fcn.0040a4e0
mov rax, qword [rsp + 0x320]
add rax, 0x328
mov rcx, qword [rsp + 0x320]
mov qword [rcx + 0x58], rax
mov rcx, qword [rsp + 0x2f8]
call fcn.0040aa70
add rsp, 0x308
pop rdi
pop rsi
ret