Function at 0x14010ac70
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x2a48
call fcn.1401da720
sub rsp, rax
mov qword [rsp + 0x2a10], 0xfffffffffffffffe
mov rax, qword [0x1402aa5c0]
xor rax, rsp
mov qword [rsp + 0x2a30], rax
mov qword [rsp + 0x4a0], 0x200000
mov dword [rsp + 0x60], 0x100000
xor eax, eax
mov word [rsp + 0xd30], ax
lea rdi, [rsp + 0xd32]
xor eax, eax
mov ecx, 0x4e
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x4f0], ax
lea rdi, [rsp + 0x4f2]
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x900], ax
lea rdi, [rsp + 0x902]
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0xa0], ax
lea rdi, [rsp + 0xa2]
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
lea rdx, [rsp + 0x4a0]
mov rcx, qword [rsp + 0x2a68]
call fcn.1401095d0
mov qword [rsp + 0x4e0], 0
lea rcx, [rsp + 0x28c0]
call fcn.140109930
lea rdi, [rsp + 0x2a00]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x28b0]
lea rsi, [rsp + 0x2a00]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x50]
lea rsi, [rsp + 0x28b0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x2a68]
imul rax, rax, 0x100000
xor edx, edx
div qword [rsp + 0x4a0]
mov rsi, rax
mov rax, qword [rsp + 0x2a68]
imul rax, rax, 0x100000
xor edx, edx
div qword [rsp + 0x4a0]
mov rdi, rax
mov rax, qword [rsp + 0x4a0]
shl rax, 3
mov ecx, dword [rsp + 0x2a80]
imul rax, rcx
xor edx, edx
div qword [rsp + 0x4a0]
mov rcx, rax
xor edx, edx
mov rax, rdi
div rcx
shl rax, 3
lea rax, [rax + rsi*8 + 0x100000]
xor edx, edx
mov ecx, 0x100000
div rcx
imul rax, rax, 0x100000
mov dword [rsp + 0xd28], eax
cmp dword [rsp + 0x2a70], 2
jne 0x14010b214
cmp qword [rsp + 0x2a78], 0
jne 0x14010ae44
xor eax, eax
jmp 0x14010c587
mov rdx, qword [rsp + 0x2a78]
lea rcx, [rsp + 0x15a0]
call fcn.140002100
nop
lea rcx, [rsp + 0x28e0]
call fcn.140109930
lea rdi, [rsp + 0x29f0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x28d0]
lea rsi, [rsp + 0x29f0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x2990]
lea rsi, [rsp + 0x28d0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov r8d, 0x28
lea rdx, [rsp + 0xd30]
lea rcx, [rsp + 0x2990]
call fcn.140109870
mov r8d, 5
lea rdx, [rsp + 0x28f8]
lea rcx, [rsp + 0x15a0]
call fcn.140006a60
mov qword [rsp + 0x2a18], rax
mov rax, qword [rsp + 0x2a18]
mov qword [rsp + 0x2a20], rax
lea rdx, str..vhdx
mov rcx, qword [rsp + 0x2a20]
call fcn.140006180
test eax, eax
jne 0x14010af1a
mov dword [rsp + 0x2a28], 1
jmp 0x14010af25
mov dword [rsp + 0x2a28], 0
movzx eax, byte [rsp + 0x2a28]
mov byte [rsp + 0x28f0], al
lea rcx, [rsp + 0x28f8]
call fcn.140001490
movzx edx, byte [rsp + 0x28f0]
test edx, edx
je 0x14010b0b3
xor r8d, r8d
lea rdx, [rsp + 0x15b0]
mov rcx, qword [rsp + 0x2a78]
call fcn.14010aaa0
mov qword [rsp + 0x15a8], rax
cmp qword [rsp + 0x15a8], 0xffffffffffffffff
jne 0x14010afa0
mov dword [rsp + 0x2900], 0
lea rcx, [rsp + 0x15a0]
call fcn.140001490
mov eax, dword [rsp + 0x2900]
jmp 0x14010c587
mov rcx, qword [rsp + 0x15a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x15dc]
mov qword [rsp + 0x4a0], rdx
mov eax, dword [rsp + 0x15f0]
mov dword [rsp + 0x2a80], eax
mov eax, dword [rsp + 0x15f4]
mov dword [rsp + 0x2a88], eax
xor edx, edx
mov rax, qword [rsp + 0x15e8]
mov ecx, 0x100000
div rcx
mov qword [rsp + 0x2a68], rax
lea rdi, [rsp + 0x50]
lea rsi, [rsp + 0x2628]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x29a0]
lea rsi, [rsp + 0x2618]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov r8d, 0x28
lea rdx, [rsp + 0xd30]
lea rcx, [rsp + 0x29a0]
call fcn.140109870
xor edx, edx
mov rax, qword [rsp + 0x2a68]
div qword [rsp + 0x4a0]
mov rsi, rax
xor edx, edx
mov rax, qword [rsp + 0x2a68]
div qword [rsp + 0x4a0]
mov rdi, rax
mov rax, qword [rsp + 0x4a0]
shl rax, 3
mov ecx, dword [rsp + 0x2a80]
imul rax, rcx
xor edx, edx
div qword [rsp + 0x4a0]
mov rcx, rax
xor edx, edx
mov rax, rdi
div rcx
shl rax, 3
lea rax, [rax + rsi*8 + 0x100000]
xor edx, edx
mov ecx, 0x100000
div rcx
imul rax, rax, 0x100000
mov dword [rsp + 0xd28], eax
xor eax, eax
mov word [rsp + 0x11a0], ax
lea rdi, [rsp + 0x11a2]
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0xda0], ax
lea rdi, [rsp + 0xda2]
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x2a78]
call fcn.140109780
test eax, eax
je 0x14010b173
lea rdx, [rsp + 0x900]
mov rcx, qword [rsp + 0x2a78]
call fcn.140109ae0
mov r8, qword [rsp + 0x2a78]
mov rdx, qword [rsp + 0x2a60]
lea rcx, [rsp + 0x11a0]
call fcn.140109730
lea rdx, [rsp + 0x4f0]
lea rcx, [rsp + 0x11a0]
call fcn.140109ae0
mov r8d, 0x200
lea rdx, [rsp + 0xda0]
lea rcx, [rsp + 0x11a0]
call fcn.140109b20
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xda0]
call fcn.140109ae0
jmp 0x14010b1ea
lea rdx, [rsp + 0x4f0]
mov rcx, qword [rsp + 0x2a78]
call fcn.140109ae0
mov r8, qword [rsp + 0x2a78]
mov rdx, qword [rsp + 0x2a60]
lea rcx, [rsp + 0x11a0]
call fcn.1401097a0
lea rdx, [rsp + 0x900]
lea rcx, [rsp + 0x11a0]
call fcn.140109ae0
mov r8d, 0x200
lea rdx, [rsp + 0xda0]
mov rcx, qword [rsp + 0x2a78]
call fcn.140109b20
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xda0]
call fcn.140109ae0
mov eax, dword [rsp + 0xd28]
xor edx, edx
mov ecx, 0x100000
div rcx
add rax, 3
mov qword [rsp + 0x4e0], rax
lea rcx, [rsp + 0x15a0]
call fcn.140001490
cmp dword [rsp + 0x2a70], 1
jne 0x14010b23b
mov eax, dword [rsp + 0xd28]
xor edx, edx
mov ecx, 0x100000
div rcx
add rax, 3
mov qword [rsp + 0x4e0], rax
cmp dword [rsp + 0x2a70], 0
jne 0x14010b2fb
xor edx, edx
mov rax, qword [rsp + 0x4a0]
mov ecx, 0x100000
div rcx
mov rcx, rax
xor edx, edx
mov rax, qword [rsp + 0x2a68]
div rcx
test rdx, rdx
jne 0x14010b29b
mov eax, dword [rsp + 0xd28]
xor edx, edx
mov ecx, 0x100000
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x2a68]
lea rax, [rax + rcx + 3]
mov qword [rsp + 0x4e0], rax
jmp 0x14010b2fb
xor edx, edx
mov rax, qword [rsp + 0x4a0]
mov ecx, 0x100000
div rcx
mov rcx, rax
xor edx, edx
mov rax, qword [rsp + 0x2a68]
div rcx
mov rdi, qword [rsp + 0x2a68]
sub rdi, rdx
xor edx, edx
mov rax, qword [rsp + 0x4a0]
mov ecx, 0x100000
div rcx
add rdi, rax
mov eax, dword [rsp + 0xd28]
xor edx, edx
mov ecx, 0x100000
div rcx
lea rax, [rdi + rax + 3]
mov qword [rsp + 0x4e0], rax
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x2a60]
call fcn.1400fa1a0
mov qword [rsp + 0x4d8], rax
cmp qword [rsp + 0x4d8], 0xffffffffffffffff
jne 0x14010b330
xor eax, eax
jmp 0x14010c587
mov rcx, qword [rsp + 0x4d8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [rsp + 0x2a90], 0
je 0x14010b388
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x2640]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x900c4
mov rcx, qword [rsp + 0x4d8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [rsp + 0xd28]
call fcn.1400f8cd0
mov qword [rsp + 0xd90], rax
cmp qword [rsp + 0xd90], 0
jne 0x14010b3bc
mov rcx, qword [rsp + 0x4d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14010c587
mov r8d, dword [rsp + 0xd28]
xor edx, edx
mov rcx, qword [rsp + 0xd90]
call fcn.1400a87c0
mov rdx, qword [rsp + 0xd90]
mov qword [rsp + 0x4d0], rdx
mov rcx, qword [rsp + 0x4d0]
movabs rax, 0x656c696678646876
mov qword [rcx], rax
mov rcx, qword [rsp + 0x4d0]
add rcx, 8
mov r8d, 0x20
lea rdx, [0x14021f860]
call fcn.1400a9470
mov rax, qword [rsp + 0x4d0]
add rax, 0x10000
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov dword [rax], 0x64616568
mov rax, qword [rsp + 0x98]
mov qword [rax + 8], 0xa
mov rax, qword [rsp + 0x98]
mov dword [rax + 4], 0
lea rcx, [rsp + 0x2918]
call fcn.140109930
lea rdi, [rsp + 0x29e0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x2904]
lea rsi, [rsp + 0x29e0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rdi, qword [rsp + 0x98]
lea rsi, [rsp + 0x2904]
add rdi, 0x10
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x2938]
call fcn.140109930
lea rdi, [rsp + 0x29d0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x2928]
lea rsi, [rsp + 0x29d0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rdi, qword [rsp + 0x98]
lea rsi, [rsp + 0x2928]
add rdi, 0x20
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x2958]
call fcn.140109930
lea rdi, [rsp + 0x29c0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x2948]
lea rsi, [rsp + 0x29c0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x70]
lea rsi, [rsp + 0x2948]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x98]
add rcx, 0x30
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor edx, edx
call fcn.1400a87c0
xor edx, edx
mov rax, qword [rsp + 0x98]
mov word [rax + 0x40], dx
mov ecx, 1
mov rax, qword [rsp + 0x98]
mov word [rax + 0x42], cx
mov rcx, qword [rsp + 0x98]
mov eax, dword [rsp + 0x60]
mov dword [rcx + 0x44], eax
mov rax, qword [rsp + 0x98]
mov qword [rax + 0x48], 0x100000
mov edx, 0x1000
mov rcx, qword [rsp + 0x98]
call fcn.1401099b0
mov edx, eax
mov rax, qword [rsp + 0x98]
mov dword [rax + 4], edx
mov rax, qword [rsp + 0x98]
add rax, 0x10000
mov qword [rsp + 0xd00], rax
mov r8d, 0x1000
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xd00]
call fcn.1400a9470
mov rdx, qword [rsp + 0xd00]
mov qword [rdx + 8], reloc.WSOCK32.dll_inet_ntoa
mov rax, qword [rsp + 0xd00]
mov dword [rax + 4], 0
mov edx, 0x1000
mov rcx, qword [rsp + 0xd00]
call fcn.1401099b0
mov edx, eax
mov rax, qword [rsp + 0xd00]
mov dword [rax + 4], edx
mov rax, qword [rsp + 0xd00]
add rax, 0x10000
mov qword [rsp + 0x4b8], rax
mov rax, qword [rsp + 0x4b8]
mov dword [rax], 0x69676572
mov rax, qword [rsp + 0x4b8]
mov dword [rax + 8], 2
mov rax, qword [rsp + 0x4b8]
mov dword [rax + 4], 0
mov rax, qword [rsp + 0x4b8]
add rax, 0x10
mov qword [rsp + 0x4b0], rax
lea rsi, [0x14021f7c0]
mov rdi, qword [rsp + 0x4b0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x4b0]
mov qword [rax + 0x10], 0x300000
mov rcx, qword [rsp + 0x4b0]
mov eax, dword [rsp + 0xd28]
mov dword [rcx + 0x18], eax
mov rax, qword [rsp + 0x4b0]
mov ecx, dword [rax + 0x1c]
or ecx, 1
mov rax, qword [rsp + 0x4b0]
mov dword [rax + 0x1c], ecx
mov rax, qword [rsp + 0x4b0]
add rax, 0x20
mov qword [rsp + 0xd20], rax
lea rsi, [0x14021f7d0]
mov rdi, qword [rsp + 0xd20]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xd20]
mov qword [rax + 0x10], 0x200000
mov rax, qword [rsp + 0xd20]
mov dword [rax + 0x18], 0x100000
mov rax, qword [rsp + 0xd20]
mov ecx, dword [rax + 0x1c]
or ecx, 1
mov rax, qword [rsp + 0xd20]
mov dword [rax + 0x1c], ecx
mov edx, 0x10000
mov rcx, qword [rsp + 0x4b8]
call fcn.1401099b0
mov edx, eax
mov rax, qword [rsp + 0x4b8]
mov dword [rax + 4], edx
mov rax, qword [rsp + 0x4b8]
add rax, 0x10000
mov qword [rsp + 0xd80], rax
mov r8d, 0x50
mov rdx, qword [rsp + 0x4b8]
mov rcx, qword [rsp + 0xd80]
call fcn.1400a9470
mov qword [rsp + 0x20], 0
mov r9d, 0x100000
mov r8, qword [rsp + 0xd90]
xor edx, edx
mov rcx, qword [rsp + 0x4d8]
call fcn.1400fb650
mov r8d, 0x100000
xor edx, edx
mov rcx, qword [rsp + 0xd90]
call fcn.1400a87c0
mov rdx, qword [rsp + 0xd90]
mov qword [rsp + 0x90], rdx
mov rax, qword [rsp + 0x90]
mov dword [rax], 0x65676f6c
mov rax, qword [rsp + 0x90]
mov dword [rax + 4], 0
mov rax, qword [rsp + 0x90]
mov dword [rax + 8], 0x1000
mov rax, qword [rsp + 0x90]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x90]
movabs rax, 0x41bcb9fd071b9622
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x18], 0
mov rdi, qword [rsp + 0x90]
lea rsi, [rsp + 0x70]
add rdi, 0x20
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x4e0]
imul rcx, rcx, 0x100000
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x30], rcx
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x30]
mov qword [rcx + 0x38], rax
mov rax, qword [rsp + 0x90]
mov edx, dword [rax + 8]
mov rcx, qword [rsp + 0x90]
call fcn.1401099b0
mov edx, eax
mov rax, qword [rsp + 0x90]
mov dword [rax + 4], edx
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 8]
mov rax, qword [rsp + 0xd90]
add rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov dword [rax], 0x65676f6c
mov rax, qword [rsp + 0x40]
mov dword [rax + 4], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0x1000
mov rax, qword [rsp + 0x90]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
movabs rax, 0xfedcba0987654321
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x18], 0
lea rcx, [rsp + 0x2978]
call fcn.140109930
lea rdi, [rsp + 0x29b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x2968]
lea rsi, [rsp + 0x29b0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rdi, qword [rsp + 0x40]
lea rsi, [rsp + 0x2968]
add rdi, 0x20
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x4e0]
imul rcx, rcx, 0x100000
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x30], rcx
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x30]
mov qword [rcx + 0x38], rax
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 8]
mov rcx, qword [rsp + 0x90]
call fcn.1401099b0
mov edx, eax
mov rax, qword [rsp + 0x40]
mov dword [rax + 4], edx
mov qword [rsp + 0x20], 0
mov r9d, 0x100000
mov r8, qword [rsp + 0xd90]
mov edx, 0x100000
mov rcx, qword [rsp + 0x4d8]
call fcn.1400fb650
mov r8d, 0x100000
xor edx, edx
mov rcx, qword [rsp + 0xd90]
call fcn.1400a87c0
mov rdx, qword [rsp + 0xd90]
mov qword [rsp + 0xd88], rdx
mov rcx, qword [rsp + 0xd88]
movabs rax, 0x617461646174656d
mov qword [rcx], rax
mov dword [rsp + 0x88], 0x10000
mov rax, qword [rsp + 0xd90]
add rax, 0x20
mov qword [rsp + 0x80], rax
lea rsi, [0x14021f7e0]
mov rdi, qword [rsp + 0x80]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov dword [rdx + 0x10], eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x14], 8
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
and ecx, 0xfffffffe
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
and ecx, 0xfffffffd
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
or ecx, 4
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0xd90]
add rax, 0x10000
mov qword [rsp + 0xd18], rax
mov rcx, qword [rsp + 0xd18]
mov eax, dword [rsp + 0x4a0]
mov dword [rcx], eax
cmp dword [rsp + 0x2a70], 0
jne 0x14010bb08
mov rax, qword [rsp + 0xd18]
mov ecx, dword [rax + 4]
or ecx, 1
mov rax, qword [rsp + 0xd18]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0xd18]
mov ecx, dword [rax + 4]
and ecx, 0xfffffffd
mov rax, qword [rsp + 0xd18]
mov dword [rax + 4], ecx
cmp dword [rsp + 0x2a70], 1
jne 0x14010bb44
mov rax, qword [rsp + 0xd18]
mov ecx, dword [rax + 4]
and ecx, 0xfffffffe
mov rax, qword [rsp + 0xd18]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0xd18]
mov ecx, dword [rax + 4]
and ecx, 0xfffffffd
mov rax, qword [rsp + 0xd18]
mov dword [rax + 4], ecx
cmp dword [rsp + 0x2a70], 2
jne 0x14010bb80
mov rax, qword [rsp + 0xd18]
mov ecx, dword [rax + 4]
and ecx, 0xfffffffe
mov rax, qword [rsp + 0xd18]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0xd18]
mov ecx, dword [rax + 4]
or ecx, 2
mov rax, qword [rsp + 0xd18]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x14]
mov eax, dword [rsp + 0x88]
add eax, ecx
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov qword [rsp + 0x80], rax
lea rsi, [0x14021f7f0]
mov rdi, qword [rsp + 0x80]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov dword [rdx + 0x10], eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x14], 8
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
and ecx, 0xfffffffe
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
or ecx, 2
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
or ecx, 4
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0xd18]
add rax, 8
mov qword [rsp + 0xd10], rax
mov rcx, qword [rsp + 0x2a68]
imul rcx, rcx, 0x400
imul rcx, rcx, 0x400
mov rax, qword [rsp + 0xd10]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x14]
mov eax, dword [rsp + 0x88]
add eax, ecx
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov qword [rsp + 0x80], rax
lea rsi, [0x14021f810]
mov rdi, qword [rsp + 0x80]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov dword [rdx + 0x10], eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x14], 4
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
and ecx, 0xfffffffe
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
or ecx, 2
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
or ecx, 4
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0xd10]
add rax, 8
mov qword [rsp + 0x4c8], rax
mov rcx, qword [rsp + 0x4c8]
mov eax, dword [rsp + 0x2a80]
mov dword [rcx], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x14]
mov eax, dword [rsp + 0x88]
add eax, ecx
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov qword [rsp + 0x80], rax
lea rsi, [0x14021f820]
mov rdi, qword [rsp + 0x80]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov dword [rdx + 0x10], eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x14], 4
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
and ecx, 0xfffffffe
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
or ecx, 2
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
or ecx, 4
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x4c8]
add rax, 4
mov qword [rsp + 0x8f0], rax
mov rcx, qword [rsp + 0x8f0]
mov eax, dword [rsp + 0x2a88]
mov dword [rcx], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x14]
mov eax, dword [rsp + 0x88]
add eax, ecx
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov qword [rsp + 0x80], rax
lea rsi, [0x14021f800]
mov rdi, qword [rsp + 0x80]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov dword [rdx + 0x10], eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x14], reloc.OLEAUT32.dll_SafeArrayGetDim
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
and ecx, 0xfffffffe
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
or ecx, 2
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
or ecx, 4
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x8f0]
add rax, 4
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x14]
mov eax, dword [rsp + 0x88]
add eax, ecx
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x2a70], 2
jne 0x14010c245
mov dword [rsp + 0x2644], 0
mov ecx, dword [rsp + 0x88]
mov rax, qword [rsp + 0xd90]
add rax, rcx
mov qword [rsp + 0x2690], rax
lea rsi, [0x14021f840]
mov rdi, qword [rsp + 0x2690]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov edx, 4
mov rax, qword [rsp + 0x2690]
mov word [rax + 0x12], dx
mov eax, dword [rsp + 0x2644]
add rax, 0x14
mov dword [rsp + 0x2644], eax
mov rax, qword [rsp + 0x2690]
movzx ecx, word [rax + 0x12]
imul rcx, rcx, 0xc
mov eax, dword [rsp + 0x2644]
add rax, rcx
mov dword [rsp + 0x2644], eax
mov rax, qword [rsp + 0x2690]
add rax, 0x14
mov qword [rsp + 0x2648], rax
lea rax, [0x14021f880]
mov qword [rsp + 0x2650], rax
lea rax, [rsp + 0xd30]
mov qword [rsp + 0x2658], rax
lea rax, [0x14021f8a0]
mov qword [rsp + 0x2660], rax
lea rax, [rsp + 0x4f0]
mov qword [rsp + 0x2668], rax
lea rax, [0x14021f8c8]
mov qword [rsp + 0x2670], rax
lea rax, [rsp + 0x900]
mov qword [rsp + 0x2678], rax
lea rax, [0x14021f8e8]
mov qword [rsp + 0x2680], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x2688], rax
mov dword [rsp + 0x2698], 0
jmp 0x14010c03b
mov eax, dword [rsp + 0x2698]
add eax, 1
mov dword [rsp + 0x2698], eax
cmp dword [rsp + 0x2698], 4
jge 0x14010c195
movsxd rcx, dword [rsp + 0x2698]
imul rcx, rcx, 0xc
mov rax, qword [rsp + 0x2648]
add rax, rcx
mov qword [rsp + 0x26a0], rax
movsxd rcx, dword [rsp + 0x2698]
imul rcx, rcx, 0x10
mov rcx, qword [rsp + rcx + 0x2650]
call fcn.1400a8944
mov rcx, rax
shl rcx, 1
mov rax, qword [rsp + 0x26a0]
mov word [rax + 8], cx
movsxd rcx, dword [rsp + 0x2698]
imul rcx, rcx, 0x10
mov rcx, qword [rsp + rcx + 0x2658]
call fcn.1400a8944
mov rcx, rax
shl rcx, 1
mov rax, qword [rsp + 0x26a0]
mov word [rax + 0xa], cx
mov rcx, qword [rsp + 0x26a0]
mov eax, dword [rsp + 0x2644]
mov dword [rcx], eax
mov rax, qword [rsp + 0x26a0]
movzx ecx, word [rax + 8]
mov eax, dword [rsp + 0x2644]
add eax, ecx
mov dword [rsp + 0x2644], eax
mov rcx, qword [rsp + 0x26a0]
mov eax, dword [rsp + 0x2644]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x26a0]
movzx ecx, word [rax + 0xa]
mov eax, dword [rsp + 0x2644]
add eax, ecx
mov dword [rsp + 0x2644], eax
mov rax, qword [rsp + 0x26a0]
movzx r8d, word [rax + 8]
movsxd rdx, dword [rsp + 0x2698]
imul rdx, rdx, 0x10
mov rax, qword [rsp + 0x26a0]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x2690]
add rcx, rax
mov rdx, qword [rsp + rdx + 0x2650]
call fcn.1400a9470
mov rdx, qword [rsp + 0x26a0]
movzx r8d, word [rdx + 0xa]
movsxd rdx, dword [rsp + 0x2698]
imul rdx, rdx, 0x10
mov rax, qword [rsp + 0x26a0]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x2690]
add rcx, rax
mov rdx, qword [rsp + rdx + 0x2658]
call fcn.1400a9470
jmp 0x14010c02a
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov qword [rsp + 0x80], rax
lea rsi, [0x14021f830]
mov rdi, qword [rsp + 0x80]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov dword [rdx + 0x10], eax
mov rcx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x2644]
mov dword [rcx + 0x14], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
and ecx, 0xfffffffe
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
and ecx, 0xfffffffd
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x18]
or ecx, 4
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x18], ecx
mov ecx, dword [rsp + 0x2644]
mov eax, dword [rsp + 0x88]
add eax, ecx
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov rcx, qword [rsp + 0xd88]
add rcx, 0x20
sub rax, rcx
xor edx, edx
mov ecx, 0x20
div rcx
mov rcx, rax
mov rax, qword [rsp + 0xd88]
mov word [rax + 0xa], cx
mov qword [rsp + 0x20], 0
mov r9d, 0x100000
mov r8, qword [rsp + 0xd90]
mov edx, 0x200000
mov rcx, qword [rsp + 0x4d8]
call fcn.1400fb650
mov rax, qword [rsp + 0x2a68]
imul rax, rax, 0x400
imul rax, rax, 0x400
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jge 0x14010c2ce
addsd xmm1, qword [0x140261550]
movsd xmm0, qword [0x140261560]
mulsd xmm0, xmm1
mov rax, qword [rsp + 0x4a0]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jge 0x14010c2f8
addsd xmm1, qword [0x140261550]
divsd xmm0, xmm1
call fcn.1400aea08
cvttsd2si rax, xmm0
mov dword [rsp + 0x4c0], eax
mov eax, dword [rsp + 0x2a80]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
movsd xmm0, qword [0x140263808]
mulsd xmm0, xmm1
mov rax, qword [rsp + 0x4a0]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jge 0x14010c347
addsd xmm1, qword [0x140261550]
divsd xmm0, xmm1
call fcn.1400aea08
xor ecx, ecx
comisd xmm0, xmmword [0x140261558]
jbe 0x14010c37b
subsd xmm0, qword [0x140261558]
comisd xmm0, xmmword [0x140261558]
jae 0x14010c37b
movabs rax, 0x8000000000000000
add rcx, rax
cvttsd2si rax, xmm0
add rax, rcx
mov dword [rsp + 0xd08], eax
mov r8d, dword [rsp + 0xd28]
xor edx, edx
mov rcx, qword [rsp + 0xd90]
call fcn.1400a87c0
mov rdx, qword [rsp + 0xd90]
mov qword [rsp + 0x4a8], rdx
cmp dword [rsp + 0x2a70], 0
jne 0x14010c4c1
mov dword [rsp + 0x26a8], 0
mov dword [rsp + 0x26ac], 0
jmp 0x14010c3e8
mov eax, dword [rsp + 0x26ac]
add eax, 1
mov dword [rsp + 0x26ac], eax
mov eax, dword [rsp + 0x4c0]
cmp dword [rsp + 0x26ac], eax
jae 0x14010c4c1
cmp dword [rsp + 0x26ac], 0
je 0x14010c462
xor edx, edx
mov eax, dword [rsp + 0x26ac]
div dword [rsp + 0xd08]
test edx, edx
jne 0x14010c462
movsxd rcx, dword [rsp + 0x26ac]
mov rax, qword [rsp + 0xd90]
lea rcx, [rax + rcx*8]
movsxd rax, dword [rsp + 0x26a8]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x4a8], rax
mov rax, qword [rsp + 0x4a8]
mov qword [rax], 0
mov eax, dword [rsp + 0x26a8]
add eax, 1
mov dword [rsp + 0x26a8], eax
movsxd rcx, dword [rsp + 0x26ac]
mov rax, qword [rsp + 0xd90]
lea rcx, [rax + rcx*8]
movsxd rax, dword [rsp + 0x26a8]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x4a8], rax
mov ecx, dword [rsp + 0xd28]
movsxd rax, dword [rsp + 0x26ac]
imul rax, qword [rsp + 0x4a0]
lea rcx, [rcx + rax + 0x300000]
and rcx, 0xfffffffffff00006
mov rax, qword [rsp + 0x4a8]
mov qword [rax], rcx
jmp 0x14010c3d7
mov r9d, dword [rsp + 0xd28]
mov qword [rsp + 0x20], 0
mov r8, qword [rsp + 0xd90]
mov edx, 0x300000
mov rcx, qword [rsp + 0x4d8]
call fcn.1400fb650
cmp qword [rsp + 0xd90], 0
je 0x14010c510
mov rcx, qword [rsp + 0xd90]
call fcn.1400f8c90
mov qword [rsp + 0xd90], 0
cmp dword [rsp + 0x2a70], 0
jne 0x14010c574
mov byte [rsp + 0x26b0], 0
lea rdi, [rsp + 0x26b1]
xor eax, eax
mov ecx, 0x1ff
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x4e0]
imul rdx, rdx, 0x400
imul rdx, rdx, 0x400
sub rdx, 0x200
mov qword [rsp + 0x20], 0
mov r9d, 0x200
lea r8, [rsp + 0x26b0]
mov rcx, qword [rsp + 0x4d8]
call fcn.1400fb650
mov rcx, qword [rsp + 0x4d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x2a30]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x2a48
pop rdi
pop rsi
ret