Function at 0x14010c4f0
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, 0x2a38
call fcn.1401e9500
sub rsp, rax
mov qword [rsp + 0x2a10], 0xfffffffffffffffe
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x2a28], 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 + 0x2a58]
call fcn.14010ae50
mov qword [rsp + 0x4e0], 0
lea rcx, [rsp + 0x28c0]
call fcn.14010b1b0
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 + 0x2a58]
imul rax, rax, 0x100000
xor edx, edx
div qword [rsp + 0x4a0]
mov rsi, rax
mov rax, qword [rsp + 0x2a58]
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 + 0x2a70]
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 + 0x2a60], 2
jne 0x14010ca84
cmp qword [rsp + 0x2a68], 0
jne 0x14010c6c4
xor eax, eax
jmp 0x14010ddf7
mov rdx, qword [rsp + 0x2a68]
lea rcx, [rsp + 0x15a0]
call fcn.140002050
nop
lea rcx, [rsp + 0x28e0]
call fcn.14010b1b0
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.14010b0f0
mov r8d, 5
lea rdx, [rsp + 0x28f8]
lea rcx, [rsp + 0x15a0]
call fcn.140006ae0
mov qword [rsp + 0x2a18], rax
lea rdx, str..vhdx
mov rcx, qword [rsp + 0x2a18]
call fcn.140006130
test eax, eax
jne 0x14010c78a
mov dword [rsp + 0x2a20], 1
jmp 0x14010c795
mov dword [rsp + 0x2a20], 0
movzx eax, byte [rsp + 0x2a20]
mov byte [rsp + 0x28f0], al
lea rcx, [rsp + 0x28f8]
call fcn.140007060
movzx edx, byte [rsp + 0x28f0]
test edx, edx
je 0x14010c923
xor r8d, r8d
lea rdx, [rsp + 0x15b0]
mov rcx, qword [rsp + 0x2a68]
call fcn.14010c320
mov qword [rsp + 0x15a8], rax
cmp qword [rsp + 0x15a8], 0xffffffffffffffff
jne 0x14010c810
mov dword [rsp + 0x2900], 0
lea rcx, [rsp + 0x15a0]
call fcn.140007060
mov eax, dword [rsp + 0x2900]
jmp 0x14010ddf7
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 + 0x2a70], eax
mov eax, dword [rsp + 0x15f4]
mov dword [rsp + 0x2a78], eax
xor edx, edx
mov rax, qword [rsp + 0x15e8]
mov ecx, 0x100000
div rcx
mov qword [rsp + 0x2a58], 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.14010b0f0
xor edx, edx
mov rax, qword [rsp + 0x2a58]
div qword [rsp + 0x4a0]
mov rsi, rax
xor edx, edx
mov rax, qword [rsp + 0x2a58]
div qword [rsp + 0x4a0]
mov rdi, rax
mov rax, qword [rsp + 0x4a0]
shl rax, 3
mov ecx, dword [rsp + 0x2a70]
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 + 0x2a68]
call fcn.14010b000
test eax, eax
je 0x14010c9e3
lea rdx, [rsp + 0x900]
mov rcx, qword [rsp + 0x2a68]
call fcn.14010b360
mov r8, qword [rsp + 0x2a68]
mov rdx, qword [rsp + 0x2a50]
lea rcx, [rsp + 0x11a0]
call fcn.14010afb0
lea rdx, [rsp + 0x4f0]
lea rcx, [rsp + 0x11a0]
call fcn.14010b360
mov r8d, 0x200
lea rdx, [rsp + 0xda0]
lea rcx, [rsp + 0x11a0]
call fcn.14010b3a0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xda0]
call fcn.14010b360
jmp 0x14010ca5a
lea rdx, [rsp + 0x4f0]
mov rcx, qword [rsp + 0x2a68]
call fcn.14010b360
mov r8, qword [rsp + 0x2a68]
mov rdx, qword [rsp + 0x2a50]
lea rcx, [rsp + 0x11a0]
call fcn.14010b020
lea rdx, [rsp + 0x900]
lea rcx, [rsp + 0x11a0]
call fcn.14010b360
mov r8d, 0x200
lea rdx, [rsp + 0xda0]
mov rcx, qword [rsp + 0x2a68]
call fcn.14010b3a0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xda0]
call fcn.14010b360
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.140007060
cmp dword [rsp + 0x2a60], 1
jne 0x14010caab
mov eax, dword [rsp + 0xd28]
xor edx, edx
mov ecx, 0x100000
div rcx
add rax, 3
mov qword [rsp + 0x4e0], rax
cmp dword [rsp + 0x2a60], 0
jne 0x14010cb6b
xor edx, edx
mov rax, qword [rsp + 0x4a0]
mov ecx, 0x100000
div rcx
mov rcx, rax
xor edx, edx
mov rax, qword [rsp + 0x2a58]
div rcx
test rdx, rdx
jne 0x14010cb0b
mov eax, dword [rsp + 0xd28]
xor edx, edx
mov ecx, 0x100000
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x2a58]
lea rax, [rax + rcx + 3]
mov qword [rsp + 0x4e0], rax
jmp 0x14010cb6b
xor edx, edx
mov rax, qword [rsp + 0x4a0]
mov ecx, 0x100000
div rcx
mov rcx, rax
xor edx, edx
mov rax, qword [rsp + 0x2a58]
div rcx
mov rdi, qword [rsp + 0x2a58]
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 + 0x2a50]
call fcn.1400fba20
mov qword [rsp + 0x4d8], rax
cmp qword [rsp + 0x4d8], 0xffffffffffffffff
jne 0x14010cba0
xor eax, eax
jmp 0x14010ddf7
mov rcx, qword [rsp + 0x4d8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [rsp + 0x2a80], 0
je 0x14010cbf8
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.1400fa550
mov qword [rsp + 0xd90], rax
cmp qword [rsp + 0xd90], 0
jne 0x14010cc2c
mov rcx, qword [rsp + 0x4d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14010ddf7
mov r8d, dword [rsp + 0xd28]
xor edx, edx
mov rcx, qword [rsp + 0xd90]
call fcn.1400a9850
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, [0x14022fba0]
call fcn.1400aa500
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.14010b1b0
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.14010b1b0
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.14010b1b0
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.1400a9850
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.14010b230
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.1400aa500
mov rdx, qword [rsp + 0xd00]
mov qword [rdx + 8], reloc.WS2_32.dll_inet_addr
mov rax, qword [rsp + 0xd00]
mov dword [rax + 4], 0
mov edx, 0x1000
mov rcx, qword [rsp + 0xd00]
call fcn.14010b230
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, [0x14022fb00]
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, [0x14022fb10]
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.14010b230
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.1400aa500
mov qword [rsp + 0x20], 0
mov r9d, 0x100000
mov r8, qword [rsp + 0xd90]
xor edx, edx
mov rcx, qword [rsp + 0x4d8]
call fcn.1400fced0
mov r8d, 0x100000
xor edx, edx
mov rcx, qword [rsp + 0xd90]
call fcn.1400a9850
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.14010b230
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.14010b1b0
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.14010b230
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.1400fced0
mov r8d, 0x100000
xor edx, edx
mov rcx, qword [rsp + 0xd90]
call fcn.1400a9850
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, [0x14022fb20]
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 + 0x2a60], 0
jne 0x14010d378
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 + 0x2a60], 1
jne 0x14010d3b4
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 + 0x2a60], 2
jne 0x14010d3f0
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, [0x14022fb30]
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 + 0x2a58]
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, [0x14022fb50]
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 + 0x2a70]
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, [0x14022fb60]
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 + 0x2a78]
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, [0x14022fb40]
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 + 0x2a60], 2
jne 0x14010dab5
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, [0x14022fb80]
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, [0x14022fbc0]
mov qword [rsp + 0x2650], rax
lea rax, [rsp + 0xd30]
mov qword [rsp + 0x2658], rax
lea rax, [0x14022fbe0]
mov qword [rsp + 0x2660], rax
lea rax, [rsp + 0x4f0]
mov qword [rsp + 0x2668], rax
lea rax, [0x14022fc08]
mov qword [rsp + 0x2670], rax
lea rax, [rsp + 0x900]
mov qword [rsp + 0x2678], rax
lea rax, [0x14022fc28]
mov qword [rsp + 0x2680], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x2688], rax
mov dword [rsp + 0x2698], 0
jmp 0x14010d8ab
mov eax, dword [rsp + 0x2698]
add eax, 1
mov dword [rsp + 0x2698], eax
cmp dword [rsp + 0x2698], 4
jge 0x14010da05
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.1400a99d4
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.1400a99d4
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.1400aa500
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.1400aa500
jmp 0x14010d89a
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov qword [rsp + 0x80], rax
lea rsi, [0x14022fb70]
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.1400fced0
mov rax, qword [rsp + 0x2a58]
imul rax, rax, 0x400
imul rax, rax, 0x400
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jge 0x14010db3e
addsd xmm1, qword [0x140272fc0]
movsd xmm0, qword [0x140272fd0]
mulsd xmm0, xmm1
mov rax, qword [rsp + 0x4a0]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jge 0x14010db68
addsd xmm1, qword [0x140272fc0]
divsd xmm0, xmm1
call fcn.1400afb58
cvttsd2si rax, xmm0
mov dword [rsp + 0x4c0], eax
mov eax, dword [rsp + 0x2a70]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
movsd xmm0, qword [0x140275298]
mulsd xmm0, xmm1
mov rax, qword [rsp + 0x4a0]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jge 0x14010dbb7
addsd xmm1, qword [0x140272fc0]
divsd xmm0, xmm1
call fcn.1400afb58
xor ecx, ecx
comisd xmm0, xmmword [0x140272fc8]
jbe 0x14010dbeb
subsd xmm0, qword [0x140272fc8]
comisd xmm0, xmmword [0x140272fc8]
jae 0x14010dbeb
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.1400a9850
mov rdx, qword [rsp + 0xd90]
mov qword [rsp + 0x4a8], rdx
cmp dword [rsp + 0x2a60], 0
jne 0x14010dd31
mov dword [rsp + 0x26a8], 0
mov dword [rsp + 0x26ac], 0
jmp 0x14010dc58
mov eax, dword [rsp + 0x26ac]
add eax, 1
mov dword [rsp + 0x26ac], eax
mov eax, dword [rsp + 0x4c0]
cmp dword [rsp + 0x26ac], eax
jae 0x14010dd31
cmp dword [rsp + 0x26ac], 0
je 0x14010dcd2
xor edx, edx
mov eax, dword [rsp + 0x26ac]
div dword [rsp + 0xd08]
test edx, edx
jne 0x14010dcd2
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 0x14010dc47
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.1400fced0
cmp qword [rsp + 0xd90], 0
je 0x14010dd80
mov rcx, qword [rsp + 0xd90]
call fcn.1400fa510
mov qword [rsp + 0xd90], 0
cmp dword [rsp + 0x2a60], 0
jne 0x14010dde4
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.1400fced0
mov rcx, qword [rsp + 0x4d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x2a28]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x2a38
pop rdi
pop rsi
ret