Function at 0x180020310
Capabilities:
Delete file

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf8
mov r14, rdx
mov esi, r9d
lea edx, [r9 + 0x78]
mov r10, rcx
mov dword [rsp + 0x44], edx
cmp r9d, edx
jae 0x180020960
movzx r13d, byte [rbp + 0x7f]
lea ebx, [r9 - 0x26]
mov r15d, dword [rbp + 0x7f]
lea r11, [0x180000000]
mov r12d, dword [rbp + 0x7f]
xor r9d, r9d
movzx edi, byte [rbp + 0x7f]
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x50], ebx
mov edx, dword [rsp + 0x50]
movzx ebx, byte [rbp + 0x7f]
nop word [rax + rax]
cmp edx, 0xa5
ja case.default.0x1800203b2
mov eax, edx
movzx eax, byte [r11 + rax + 0x209ac]
mov ecx, dword [r11 + rax*4 + 0x2097c]
add rcx, r11
jmp rcx
mov eax, dword [r8]
mov ecx, dword [r14]
shl rcx, 6
add rcx, qword [r11 + rax*8 + 0x71cf0]
mov qword [rbp - 0x49], rcx
test byte [rcx + 0x2c], 2
je case.0x1800203b2.11
xor al, al
jmp 0x180020967
mov edx, 0x115
mov byte [0x1800a41d5], 1
lea rcx, str.texture3DGrad_su31_vf3_vf3_vf3_
mov byte [0x1800974c2], 1
call fcn.180041370
jmp 0x18002092f
cmp dword [r10], 1
jne 0x1800203d4
mov eax, dword [r14]
lea rcx, [0x1800a4200]
shr rax, 1
imul rax, rax, 0x38
add rax, rcx
mov qword [rbp - 0x59], rax
jmp case.0x1800203b2.11
mov rcx, qword [rbp - 0x59]
mov r8d, 0x62
mov eax, dword [rbp - 0x21]
sub eax, dword [rbp - 0x29]
sub eax, 8
mov dword [rbp - 0x79], 0x20
cmp byte [rcx + 0x10], 0
lea rsi, [rcx + 0x11]
mov dword [rsp + 0x48], eax
lea rcx, [rbp - 0x71]
mov eax, dword [0x18006f538]
mov rdx, rsi
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x58]
mov dword [rbp - 0x69], eax
mov eax, dword [0x18006f534]
mov dword [rbp - 0x71], eax
mov rax, rsi
cmove rax, r9
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x79]
lea rax, [rbp - 0x69]
mov byte [rsp + 0x58], 1
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.18000d060
movzx r13d, al
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rsi + rcx], 0
jne 0x1800204a3
test rcx, rcx
jne 0x1800204c7
movsd xmm0, qword [str.Untitled]
movsd qword [rsi], xmm0
movzx eax, byte [0x1800682a0]
mov byte [rsi + 8], al
test r13b, r13b
je 0x18002092c
mov esi, 0x122
nop word [rax + rax]
cmp esi, 0x37942
ja 0x180020677
je 0x1800205b3
cmp esi, 0x122
je 0x18002056b
cmp esi, 0xdf2a
je 0x180020547
cmp esi, 0x1bd32
je 0x18002053b
cmp esi, 0x29b3a
jne 0x1800206ed
mov eax, dword [r14]
lea rdx, [rbp - 0x61]
shr eax, 1
mov ecx, 0x66
mov dword [rbp - 0x61], eax
call fcn.18004ff20
xor r9d, r9d
mov qword [rbp - 0x51], rax
mov r15d, r9d
jmp 0x1800206f0
mov byte [0x1800a41cc], 1
jmp 0x1800206ed
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call fcn.180047de0
xor edx, edx
xor ecx, ecx
mov r8d, 0xc4
call fcn.18004cfd0
jmp 0x1800206ed
xor r8d, r8d
lea rcx, [rbp - 9]
lea edx, [r8 + 0x56]
call fcn.18004e770
lea r8, [rsp + 0x48]
mov dword [rsp + 0x48], 3
lea rdx, [rbp - 0x79]
mov dword [rbp - 0x79], 0xa
mov ecx, 0x95
call fcn.18000eee0
lea rdx, str.Saving
mov ecx, 0xf9
call fcn.1800080d0
jmp 0x1800206ed
mov rcx, qword [rbp - 0x51]
mov edx, 0x8101
lea r8d, [rdx + 0x7f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open]
mov r14d, eax
cmp eax, 0xffffffff
je 0x180020641
mov rdx, qword [rbp - 0x59]
mov r8d, 0x38
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
cmp eax, 0x38
jne 0x18002062e
mov rdx, qword [0x1800a4498]
test rdx, rdx
je 0x1800205fa
mov ecx, r14d
call rdx
movzx r13d, al
test r13b, r13b
jne 0x18002061c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r15d, dword [rax]
xor edx, edx
mov dword [rsp + 0x48], r15d
lea r8, [rsp + 0x48]
lea ecx, [rdx + 0x2b]
call fcn.18002e5f0
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov r14, qword [rbp + 0x6f]
jmp 0x1800206ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
jne 0x1800205ff
mov r15d, 0xc
jmp 0x180020608
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
jne 0x180020654
mov r15d, 0xc
jmp 0x18002065d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r15d, dword [rax]
xor edx, edx
mov dword [rsp + 0x48], r15d
lea r8, [rsp + 0x48]
lea ecx, [rdx + 0x2b]
call fcn.18002e5f0
mov r14, qword [rbp + 0x6f]
jmp 0x1800206ed
cmp esi, 0x4574a
je 0x1800206d4
cmp esi, 0x53552
je 0x180020694
cmp esi, 0x6135a
jne 0x1800206ed
jmp 0x180020557
mov ecx, 0xdc
call fcn.180049620
lea rdx, [rbp - 9]
mov ecx, 0xca
call fcn.180017da0
mov rax, qword [rbp + 0x77]
lea r8, [rsp + 0x48]
mov edx, 0x77
mov dword [rsp + 0x48], 0
lea rcx, [rbp - 0x79]
mov eax, dword [rax]
dec eax
mov dword [rbp - 0x79], eax
call fcn.180013a00
jmp 0x1800206ed
test r15d, r15d
je 0x1800206e6
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
xor r13b, r13b
mov byte [0x1800a41cc], 0
xor r9d, r9d
add esi, 0xde08
cmp esi, 0x6f040
jbe 0x1800204e0
mov esi, dword [rbp + 0x7f]
jmp 0x180020932
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x19]
add rdx, 0xffffffffffffffc0
mov byte [0x1800974c2], 3
mov r8d, 0x47
call fcn.18003e570
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x18002092f
mov eax, dword [r14]
lea rdx, [rbp + 0x7f]
dec eax
lea rcx, [rsp + 0x48]
mov dword [rbp + 0x7f], eax
mov r9d, 0x10e
mov eax, dword [r8]
xor r8d, r8d
mov dword [rsp + 0x48], eax
call fcn.18003eb90
jmp 0x18002092f
mov qword [rbp - 0x31], r8
jmp case.0x1800203b2.11
mov rax, qword [rbp - 0x59]
cmp byte [rax + 0x10], 0
jne 0x180020778
mov byte [rax + 0x10], r13b
test r13b, r13b
je case.0x1800203b2.11
mov rax, qword [rbp - 0x49]
mov byte [0x1800a41ce], 0
and dword [rax - 0x14], 0xfffffffd
jmp case.0x1800203b2.11
mov bl, 1
jmp case.0x1800203b2.11
xor r9d, r9d
xor edx, edx
mov rcx, r10
lea r8d, [r9 + 0x2b]
call fcn.180016870
test al, al
je 0x1800208c6
mov esi, 0x23
nop word [rax + rax]
cmp esi, 0x23
je 0x1800208a4
cmp esi, 0x10f4
je 0x180020867
cmp esi, 0x21c5
je 0x1800207ee
cmp esi, 0x3296
je case.0x1800203b2.8
jmp 0x1800208b1
movzx eax, byte [rsp + 0x40]
xor ecx, ecx
test r12d, r12d
cmove ecx, eax
mov byte [rsp + 0x40], cl
cmp cl, 0
je 0x18002084f
mov ebx, 0x11
xor r14d, r14d
nop dword [rax]
mov eax, ebx
sub eax, 0x10
je 0x180020836
cmp eax, 1
jne 0x180020844
lea r8, [rbp - 0x41]
mov qword [rbp - 0x41], r14
xor edx, edx
xor ecx, ecx
call sub.RPCRT4.dll_MesDecodeIncrementalHandleCreate
mov rcx, qword [rbp - 0x39]
mov r12d, eax
jmp 0x18002083a
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x180020844
call sub.RPCRT4.dll_MesHandleFree
dec ebx
cmp ebx, 0xf
ja 0x180020810
mov r14, qword [rbp + 0x6f]
mov rax, qword [rbp - 0x31]
mov edx, 0x1c
xor ecx, ecx
mov r8, qword [rax]
call fcn.18001fba0
movzx ebx, al
jmp 0x1800208b1
mov rdx, qword [rbp + 0x67]
xor eax, eax
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, 0x135
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.18000aa80
test al, al
je 0x1800203d4
lea r9, [rbp - 0x39]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sub.RPCRT4.dll_MesEncodeIncrementalHandleCreate
mov r12d, eax
jmp 0x1800208b1
mov byte [rsp + 0x40], 1
mov qword [rbp - 0x39], 0
add esi, 0x10d1
cmp esi, 0x4344
jbe 0x1800207c0
mov esi, dword [rbp + 0x7f]
mov ecx, 0xdb
nop dword [rax + rax]
mov eax, ecx
sub eax, 0xd9
je 0x180020901
cmp eax, 2
jne 0x180020920
movzx edi, byte [0x180072348]
test dil, dil
je 0x1800203d4
mov rdx, qword [rbp + 0x67]
mov ecx, 0xb3
call fcn.180022d40
mov rbx, rax
jmp 0x18002092f
mov byte [0x1800a3ad1], 0xff
mov eax, dword [pe_dos_header]
mov dword [0x1800a3b00], eax
mov qword [0x1800a3af8], 8
dec ecx
cmp ecx, 0xd9
ja 0x1800208d0
jmp 0x1800208e5
mov esi, dword [rbp + 0x7f]
xor r9d, r9d
mov r10, qword [rbp + 0x67]
lea r11, [0x180000000]
mov r8, qword [rbp + 0x77]
mov edx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x44]
add esi, 0xa
add edx, 0xa
mov dword [rbp + 0x7f], esi
mov dword [rsp + 0x50], edx
cmp esi, eax
jb 0x180020390
jmp case.0x1800203b2.8
movzx ebx, byte [rbp + 0x7f]
movzx eax, bl
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret