Function at 0x140157790
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xd0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r15, r9
mov rsi, rdx
mov r13, rcx
xor edi, edi
mov qword [rbp - 0x71], rdi
mov byte [rbp + 0x77], 1
mov qword [rbp - 0x49], rdi
mov r14d, 0x80
mov ecx, r14d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbx, rax
mov qword [rbp - 0x21], rax
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
nop
mov rax, qword [r15]
mov rdx, rbx
mov rcx, r15
call qword [rax + 0x18]
test eax, eax
jns 0x14015783f
lea rdx, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rdx
je 0x14015783a
test byte [rcx + 0x1c], 1
je 0x14015783a
cmp byte [rcx + 0x19], 2
jb 0x14015783a
lea edx, [rdi + 0x4f]
mov r9d, eax
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
nop
jmp 0x140158514
movups xmm0, xmmword [rbx]
movdqu xmmword [rsi + 0x10], xmm0
xor r8d, r8d
lea rdx, [rsi + 0x28]
mov rcx, qword [rbx + 0x68]
call fcn.1400a99e4
test eax, eax
jns 0x140157862
mov edi, eax
jmp 0x140158514
mov rcx, qword [rbx + 0x60]
add rcx, 0x22
call qword [sym.imp.msvcrt.dll__wtol]
mov dword [rsi + 0x20], eax
mov rax, qword [rbx + 0x28]
mov qword [rsi + 0x30], rax
lea r12, [rsi + 0x68]
mov rdx, r12
mov rcx, qword [rbx + 0x78]
call fcn.14015e424
mov r14d, eax
test eax, eax
jns 0x1401578cf
lea rdx, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rdx
je 0x1401578ca
test byte [rcx + 0x1c], 1
je 0x1401578ca
cmp byte [rcx + 0x19], 2
jb 0x1401578ca
mov edx, EventWrite
mov r9d, eax
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
nop
jmp 0x140158511
lea rcx, [0x14017d3a8]
cmp byte [rbp + 0x7f], dil
je 0x140157900
mov eax, dword [rsi + 0x30]
mov dword [rsi], eax
movzx eax, word [rsi + 0x20]
mov word [rsi + 4], ax
mov rax, qword [rsi + 0x30]
mov qword [rsi + 0x38], rax
mov dword [rsi + 0x44], edi
mov r10, qword [0x14017d3a8]
jmp 0x14015826d
cmp dword [rbx + 0x44], 1
jne 0x14015790d
mov eax, dword [rbx + 0x48]
mov dword [rsi], eax
jmp 0x140157915
movups xmm0, xmmword [rbx + 0x48]
movdqu xmmword [rsi], xmm0
mov qword [rbp - 0x79], rdi
mov rax, qword [r15]
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x79]
mov rcx, r15
call qword [rax + 0x30]
mov r14d, eax
test eax, eax
jns 0x1401579ae
cmp eax, 0x80042444
je 0x140157951
lea r8, [0x140015e38]
mov edx, 0x65a
lea rcx, [0x140015e58]
call fcn.1400a8be8
lea rdx, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rdx
je 0x140157988
test byte [rcx + 0x1c], 1
je 0x140157988
cmp byte [rcx + 0x19], 3
jb 0x140157988
mov edx, EventWrite
mov r9d, r14d
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
mov qword [rsi + 0x38], rdi
mov dword [rsi + 0x44], edi
mov byte [rsi + 0x40], 1
mov r14d, edi
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x1401584f4
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1401584f4
mov r9d, edi
mov rdx, rdi
movsxd r8, dword [rsp + 0x30]
test r8, r8
jle 0x140157a7b
mov rax, qword [rbp - 0x79]
lea rcx, [rax + 0x10]
cmp dword [rcx], 2
je 0x1401579e6
cmp dword [rcx], 1
je 0x1401579e6
cmp dword [rcx], 6
je 0x1401579e6
cmp dword [rcx], 5
je 0x1401579e6
cmp dword [rcx], reloc.ADVAPI32.dll_TraceEvent
jne 0x1401579fb
inc r9d
inc rdx
add rcx, 0x50
cmp rdx, r8
jge 0x140157a7b
jmp 0x1401579ca
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x140157a74
test byte [rcx + 0x1c], 1
je 0x140157a4a
cmp byte [rcx + 0x19], 4
jb 0x140157a4a
movsxd rdx, r9d
lea r8, [rdx + rdx*4]
add r8, r8
mov edx, EventWrite
mov r8d, dword [rax + r8*8 + 0x10]
mov dword [rsp + 0x20], r8d
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.1400285b4
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140157a74
test byte [rcx + 0x1c], 1
je 0x140157a74
cmp byte [rcx + 0x19], 4
jb 0x140157a74
mov edx, reloc.ADVAPI32.dll_EventWrite
mov r9d, dword [rsi + 0x20]
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
or dword [r12], 8
jmp 0x140157a82
lea r15, [0x14017d3a8]
cmp byte [r13 + 0x50], dil
je 0x140157a8d
or dword [r12], 0x10
mov qword [rsi + 0x38], rdi
movsxd rcx, dword [rsp + 0x30]
shl rcx, 4
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsi + 0x48], rax
test rax, rax
jne 0x140157ac6
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x140157abc
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x79], rdi
mov edi, 0x8007000e
jmp 0x140158514
movsxd r8, dword [rsp + 0x30]
shl r8, 4
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
movsxd rcx, dword [rsp + 0x30]
shl rcx, 2
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsi + 0x50], rax
test rax, rax
jne 0x140157b06
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x140157b04
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x79], rdi
jmp 0x140157abc
movsxd r8, dword [rsp + 0x30]
shl r8, 2
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
movsxd rcx, dword [rsp + 0x30]
shl rcx, 3
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x140157b49
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x140157b44
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x79], rdi
jmp 0x140157abc
movsxd r8, dword [rsp + 0x30]
shl r8, 3
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
movsxd rcx, dword [rsp + 0x30]
shl rcx, 3
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsi + 0x60], rax
test rax, rax
jne 0x140157b8c
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x140157b87
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x79], rdi
jmp 0x140157abc
movsxd r8, dword [rsp + 0x30]
shl r8, 3
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rsi + 0x44], edi
mov ebx, edi
mov dword [rbp - 0x69], ebx
mov r12, rdi
mov qword [rbp - 0x39], rdi
lea r13, [0x140015ed8]
cmp dword [rsp + 0x30], edi
jle 0x140158216
mov ecx, dword [rsi + 0x44]
mov rax, qword [rsi + 0x58]
cmp qword [rax + rcx*8], rdi
je 0x140157be2
mov rcx, qword [rax + rcx*8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r11d, dword [rsi + 0x44]
mov rax, qword [rsi + 0x58]
mov qword [rax + r11*8], rdi
mov ecx, dword [rsi + 0x44]
mov rax, qword [rsi + 0x60]
cmp qword [rax + rcx*8], rdi
je 0x140157c05
mov rcx, qword [rax + rcx*8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r11d, dword [rsi + 0x44]
mov rax, qword [rsi + 0x60]
mov qword [rax + r11*8], rdi
mov edx, dword [rsi + 0x44]
mov rax, qword [rsi + 0x50]
mov dword [rax + rdx*4], edi
mov edx, dword [rsi + 0x44]
add rdx, rdx
mov rax, qword [rsi + 0x48]
movups xmm0, xmmword [0x14000ab48]
movdqu xmmword [rax + rdx*8], xmm0
mov rax, qword [rbp - 0x49]
test rax, rax
je 0x140157c3e
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov qword [rbp - 0x49], rax
mov r10, qword [rbp - 0x71]
test r10, r10
je 0x140157c57
mov rcx, r10
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r10, rdi
mov qword [rbp - 0x71], rdi
lea r12, [r12 + r12*4]
add r12, r12
mov rcx, qword [rbp - 0x79]
mov r8d, dword [rcx + r12*8 + 0x10]
cmp r8d, 1
je 0x1401581b4
cmp r8d, 0x7fff
je 0x1401581b4
cmp r8d, 2
jne 0x14015802b
movsxd rax, ebx
lea rax, [rax + rax*4]
add rax, rax
lea rdx, [0x14000ab48]
mov r9, qword [rcx + rax*8 + 0x28]
cmp r9, qword [rdx]
jne 0x140157cb2
mov r9, qword [rcx + rax*8 + 0x30]
cmp r9, qword [rdx + 8]
jne 0x140157cb2
mov eax, edi
jmp 0x140157cb7
sbb eax, eax
sbb eax, reloc.ADVAPI32.dll_TraceEvent
test eax, eax
je 0x14015802b
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x61], rdi
mov byte [rbp + 0x77], dil
movups xmm0, xmmword [rcx + r12*8 + 0x28]
movdqu xmmword [rbp + 0xf], xmm0
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
lea r9, [rbp - 0x59]
mov r8d, reloc.ADVAPI32.dll_TraceMessage
lea rdx, [rbp + 0xf]
call qword [rax + 0x48]
test eax, eax
jns 0x140157d58
mov r10, qword [0x14017d3a8]
cmp r10, r15
je 0x140157d27
test byte [r10 + 0x1c], 1
je 0x140157d27
cmp byte [r10 + 0x19], 3
jb 0x140157d27
mov edx, 0x53
mov r9d, eax
mov r8, r13
mov rcx, qword [r10 + 0x10]
call fcn.14001de24
mov r10, qword [0x14017d3a8]
mov r14d, edi
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140157d40
mov rax, qword [rcx]
call qword [rax + CoRevokeClassObject]
mov r10, qword [0x14017d3a8]
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1401581c4
mov rax, qword [rcx]
call qword [rax + CoRevokeClassObject]
jmp 0x1401581bd
mov r9, qword [rbp - 0x61]
mov rcx, qword [rbp - 0x59]
cmp r9, rcx
je 0x140157da5
mov rbx, r9
mov r9, rdi
mov qword [rbp - 0x61], rdi
test rcx, rcx
je 0x140157d8c
mov rax, qword [rcx]
lea r8, [rbp - 0x61]
lea rdx, [0x140015ee8]
call qword [rax]
mov rcx, qword [rbp - 0x59]
mov r9, qword [rbp - 0x61]
test rbx, rbx
je 0x140157da2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + CoRevokeClassObject]
mov rcx, qword [rbp - 0x59]
mov r9, qword [rbp - 0x61]
mov ebx, dword [rbp - 0x69]
test r9, r9
je 0x1401581e2
test rcx, rcx
je 0x140157dc1
mov rax, qword [rcx]
call qword [rax + CoRevokeClassObject]
mov qword [rbp - 0x59], rdi
mov r9, qword [rbp - 0x61]
mov r8d, dword [rsi + 0x44]
mov rdx, qword [rsi + 0x58]
mov rcx, qword [rsi + 0x48]
call fcn.140158540
test eax, eax
jns 0x140157e29
mov r10, qword [0x14017d3a8]
cmp r10, r15
je 0x140157e0b
test byte [r10 + 0x1c], 1
je 0x140157e0b
cmp byte [r10 + 0x19], 3
jb 0x140157e0b
mov edx, 0x54
mov r9d, eax
mov r8, r13
mov rcx, qword [r10 + 0x10]
call fcn.14001de24
mov r10, qword [0x14017d3a8]
mov r14d, edi
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140157e24
mov rax, qword [rcx]
call qword [rax + CoRevokeClassObject]
mov r10, qword [0x14017d3a8]
jmp 0x140157d40
mov edx, dword [rsi + 0x44]
mov rax, qword [rsi + 0x50]
mov ecx, edx
shl rcx, 4
add rcx, qword [rsi + 0x48]
xor r9d, r9d
lea r8, [rbp - 0x71]
mov edx, dword [rax + rdx*4]
call fcn.1400ac7e4
test eax, eax
jns 0x140157ea0
mov r10, qword [0x14017d3a8]
cmp r10, r15
je 0x140157e82
test byte [r10 + 0x1c], 1
je 0x140157e82
cmp byte [r10 + 0x19], 3
jb 0x140157e82
mov edx, 0x55
mov r9d, eax
mov r8, r13
mov rcx, qword [r10 + 0x10]
call fcn.14001de24
mov r10, qword [0x14017d3a8]
mov r14d, edi
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140157e9b
mov rax, qword [rcx]
call qword [rax + CoRevokeClassObject]
mov r10, qword [0x14017d3a8]
jmp 0x140157d40
mov ebx, 1
lea rdx, [rbp - 0x49]
mov rcx, qword [rbp - 0x71]
call fcn.140152fbc
mov r14d, eax
test eax, eax
jns 0x140157ee7
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140157ee2
test byte [rcx + 0x1c], bl
je 0x140157ee2
cmp byte [rcx + 0x19], 3
jb 0x140157ee2
lea edx, [rbx + 0x55]
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
mov r14d, edi
mov ebx, edi
cmp qword [rbp - 0x49], rdi
je 0x140157ff0
mov dword [rbp - 0x41], edi
lea r8, [rbp - 0x41]
mov dl, 1
mov r12, qword [rbp - 0x71]
mov rcx, r12
call fcn.140153ce4
mov r14d, eax
test eax, eax
jns 0x140157f49
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140157f44
test byte [rcx + 0x1c], 1
je 0x140157f44
cmp byte [rcx + 0x19], 3
jb 0x140157f44
mov edx, 0x57
mov dword [rsp + 0x20], eax
mov r9, r12
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
mov r14d, edi
jmp 0x140157f50
mov rcx, qword [0x14017d3a8]
mov eax, dword [rbp - 0x41]
shr eax, 0xb
and al, 1
jne 0x140157fc5
mov rbx, rdi
lea r9, [rbp - 0x19]
lea r8, [rbp + 7]
lea rdx, [rbp - 0x29]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x140157f83
mov rcx, r12
call fcn.140154be4
mov r14d, eax
jmp 0x140157f8a
mov rbx, qword [rbp - 0x29]
mov r14d, edi
test r14d, r14d
jns 0x140157fea
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140157fc0
test byte [rcx + 0x1c], 1
je 0x140157fc0
cmp byte [rcx + 0x19], 3
jb 0x140157fc0
mov edx, 0x58
mov dword [rsp + 0x20], r14d
mov r9, r12
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
mov r14d, edi
jmp 0x140157fea
cmp rcx, r15
je 0x140157fe7
test byte [rcx + 0x1c], 1
je 0x140157fe7
cmp byte [rcx + 0x19], 4
jb 0x140157fe7
mov edx, 0x59
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
mov rbx, rdi
add qword [rsi + 0x38], rbx
jmp 0x140158001
test ebx, ebx
je 0x140158001
mov rax, qword [rbp - 0x79]
mov rcx, qword [rax + r12*8 + 0x20]
add qword [rsi + 0x38], rcx
inc dword [rsi + 0x44]
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140158014
mov rax, qword [rcx]
call qword [rax + CoRevokeClassObject]
nop
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x140158023
mov rax, qword [rcx]
call qword [rax + CoRevokeClassObject]
mov ebx, dword [rbp - 0x69]
jmp 0x1401581bd
cmp r8d, 4
jne 0x1401581a5
mov byte [rbp + 0x77], dil
lea ebx, [r8 - 3]
mov ecx, dword [rsi + 0x44]
mov rax, qword [rsi + 0x50]
or dword [rax + rcx*4], ebx
mov rcx, r10
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x71], rdi
lea rcx, [rbp - 0x71]
call fcn.1400b0e54
test eax, eax
jns 0x1401580a6
mov r10, qword [0x14017d3a8]
cmp r10, r15
je 0x140158098
test byte [r10 + 0x1c], bl
je 0x140158098
cmp byte [r10 + 0x19], 3
jb 0x140158098
lea edx, [rbx + 0x5a]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp - 0x71]
mov r8, r13
mov rcx, qword [r10 + 0x10]
call fcn.14001ecbc
mov r10, qword [0x14017d3a8]
mov r14d, edi
mov ebx, dword [rbp - 0x69]
mov al, r14b
jmp 0x1401581c7
mov ecx, dword [rsi + 0x44]
mov rax, qword [rsi + 0x58]
lea rdx, [rax + rcx*8]
xor r8d, r8d
mov rcx, qword [rbp - 0x71]
call fcn.1400a99e4
mov r14d, eax
test eax, eax
js 0x14015820b
lea rdx, [rbp - 0x49]
mov rcx, qword [rbp - 0x71]
call fcn.140152fbc
mov r14d, eax
test eax, eax
jns 0x140158111
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14015810c
test byte [rcx + 0x1c], bl
je 0x14015810c
cmp byte [rcx + 0x19], 3
jb 0x14015810c
mov edx, 0x5c
mov dword [rsp + 0x20], eax
mov r9, qword [rbp - 0x71]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
mov r14d, edi
mov ebx, edi
cmp qword [rbp - 0x49], rdi
je 0x14015818c
mov rbx, rdi
lea r9, [rbp - 0x11]
lea r8, [rbp - 1]
lea rdx, [rbp - 0x31]
mov r12, qword [rbp - 0x71]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x140158144
mov rcx, r12
call fcn.140154be4
mov r14d, eax
jmp 0x14015814b
mov rbx, qword [rbp - 0x31]
mov r14d, edi
test r14d, r14d
jns 0x140158186
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140158181
test byte [rcx + 0x1c], 1
je 0x140158181
cmp byte [rcx + 0x19], 3
jb 0x140158181
mov edx, 0x5d
mov dword [rsp + 0x20], r14d
mov r9, r12
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
mov r14d, edi
jmp 0x14015819d
add qword [rsi + 0x38], rbx
jmp 0x14015819d
test ebx, ebx
je 0x14015819d
mov rax, qword [rbp - 0x79]
mov rcx, qword [rax + r12*8 + 0x20]
add qword [rsi + 0x38], rcx
inc dword [rsi + 0x44]
jmp 0x140158023
mov al, dil
mov byte [rbp + 0x77], al
mov r10, qword [0x14017d3a8]
jmp 0x1401581c7
mov rax, qword [rcx + r12*8 + 0x20]
add qword [rsi + 0x38], rax
mov r10, qword [0x14017d3a8]
mov al, byte [rbp + 0x77]
inc ebx
mov dword [rbp - 0x69], ebx
mov r12, qword [rbp - 0x39]
inc r12
mov qword [rbp - 0x39], r12
cmp ebx, dword [rsp + 0x30]
jge 0x140158210
jmp 0x140157bbf
test rcx, rcx
je 0x1401581ee
mov rax, qword [rcx]
call qword [rax + CoRevokeClassObject]
nop
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x140158201
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x79], rdi
mov edi, 0x80004002
jmp 0x140158514
jmp 0x140157996
test al, al
je 0x140158250
jmp 0x14015821d
mov r10, qword [0x14017d3a8]
cmp r10, r15
je 0x140158241
test byte [r10 + 0x1c], 1
je 0x140158241
cmp byte [r10 + 0x19], 4
jb 0x140158241
mov edx, 0x5e
mov r8, r13
mov rcx, qword [r10 + 0x10]
call fcn.14001dd24
mov rax, qword [rsi + 0x30]
mov qword [rsi + 0x38], rax
mov r10, qword [0x14017d3a8]
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x140158266
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r10, qword [0x14017d3a8]
lea rcx, [0x14017d3a8]
cmp r10, rcx
je 0x1401582b0
test byte [r10 + 0x1c], 1
je 0x1401582b0
cmp byte [r10 + 0x19], 4
jb 0x1401582b0
mov edx, 0x5f
mov rax, qword [rsi + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsi + 0x20]
lea r8, [0x140015ed8]
mov rcx, qword [r10 + 0x10]
call fcn.14006beb4
mov r10, qword [0x14017d3a8]
lea rcx, [0x14017d3a8]
cmp dword [rsi + 0x44], edi
jne 0x1401582f3
cmp r10, rcx
je 0x1401582e8
test byte [r10 + 0x1c], 1
je 0x1401582e8
cmp byte [r10 + 0x19], 4
jb 0x1401582e8
mov edx, 0x60
mov r9d, dword [rsi + 0x20]
lea r8, [0x140015ed8]
mov rcx, qword [r10 + 0x10]
call fcn.14001de24
lea rcx, [0x14017d3a8]
mov byte [rsi + 0x40], 1
mov r10, qword [0x14017d3a8]
mov ebx, edi
cmp dword [rsi + 0x44], edi
jbe 0x1401584f4
mov r12, rdi
mov r15, rdi
cmp r10, rcx
je 0x140158342
test byte [r10 + 0x1c], 1
je 0x140158342
cmp byte [r10 + 0x19], 4
jb 0x140158342
mov r9, qword [rsi + 0x58]
mov edx, 0x61
mov r9, qword [r9 + r12]
lea r8, [0x140015ed8]
mov rcx, qword [r10 + 0x10]
call fcn.14001ec40
mov r10, qword [0x14017d3a8]
lea rcx, [0x14017d3a8]
mov rax, qword [rsi + 0x50]
test byte [r15 + rax], 1
je 0x140158386
cmp r10, rcx
je 0x1401584a8
test byte [r10 + 0x1c], 1
je 0x1401584a8
cmp byte [r10 + 0x19], 4
jb 0x1401584a8
mov edx, 0x62
lea r8, [0x140015ed8]
mov rcx, qword [r10 + 0x10]
call fcn.14001dd24
jmp 0x14015849a
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x71], rdi
mov r13d, ebx
mov rax, qword [rsi + 0x50]
mov ecx, ebx
shl rcx, 4
add rcx, qword [rsi + 0x48]
xor r9d, r9d
lea r8, [rbp - 0x71]
mov edx, dword [rax + r15]
call fcn.1400ac7e4
mov r14d, eax
test eax, eax
js 0x1401584bd
mov rcx, qword [0x14017d3a8]
lea rdx, [0x14017d3a8]
cmp rcx, rdx
je 0x1401583f8
test byte [rcx + 0x1c], 1
je 0x1401583f8
cmp byte [rcx + 0x19], 4
jb 0x1401583f8
mov edx, 0x64
mov r9, qword [rbp - 0x71]
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.14001ec40
mov rax, qword [rsi + 0x60]
lea rdx, [rax + r13*8]
mov rcx, qword [rbp - 0x71]
call fcn.140153a9c
mov r14d, eax
test eax, eax
jns 0x14015845c
mov r10, qword [0x14017d3a8]
lea rcx, [0x14017d3a8]
cmp r10, rcx
je 0x140158457
test byte [r10 + 0x1c], 1
je 0x140158457
cmp byte [r10 + 0x19], 3
jb 0x140158457
mov edx, 0x65
mov r9d, eax
lea r8, [0x140015ed8]
mov rcx, qword [r10 + 0x10]
call fcn.14001de24
mov r10, qword [0x14017d3a8]
lea rcx, [0x14017d3a8]
mov r14d, edi
jmp 0x1401584a8
mov r10, qword [0x14017d3a8]
lea rcx, [0x14017d3a8]
cmp r10, rcx
je 0x1401584a8
test byte [r10 + 0x1c], 1
je 0x1401584a8
cmp byte [r10 + 0x19], 4
jb 0x1401584a8
mov r9, qword [rsi + 0x60]
mov edx, DeleteCriticalSection
mov r9, qword [r12 + r9]
lea r8, [0x140015ed8]
mov rcx, qword [r10 + 0x10]
call fcn.14001ec40
lea rcx, [0x14017d3a8]
mov r10, qword [0x14017d3a8]
inc ebx
add r15, 4
add r12, 8
cmp ebx, dword [rsi + 0x44]
jb 0x140158304
jmp 0x1401584f4
mov rcx, qword [0x14017d3a8]
lea rdx, [0x14017d3a8]
cmp rcx, rdx
je 0x1401584f4
test byte [rcx + 0x1c], 1
je 0x1401584f4
cmp byte [rcx + 0x19], 2
jb 0x1401584f4
mov edx, 0x63
mov r9d, eax
lea r8, [0x140015ed8]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp - 0x49]
test rax, rax
je 0x140158511
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov edi, r14d
lea rcx, [rbp - 0x21]
call fcn.14015a250
mov eax, edi
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret