Function at 0x140008d4c
Capabilities:
Check if file exists
Create process memory minidump
Delete file
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov r12d, edx
mov r14, rcx
or r15, 0xffffffffffffffff
cmp edx, 0x967
jne 0x140008dbf
lea rdx, [0x140061044]
lea rcx, [rbp + 0x78]
call fcn.14000d338
nop
mov r8, qword [r14 + 8]
mov r8, qword [r8 + 0x840]
lea rdx, [rbp + 0x78]
xor ecx, ecx
call fcn.140022038
nop
mov rdx, qword [rbp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140008dbf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [r14 + 8]
mov eax, dword [rdx + 0x20]
mov dword [rsp + 0x40], eax
mov rax, qword [rdx + 0x5b0]
mov qword [rsp + 0x44], rax
mov esi, 1
mov dword [rsp + 0x4c], esi
mov r8d, r12d
mov rdx, qword [rdx + 0x860]
lea rcx, [rsp + 0x68]
call fcn.140020118
nop
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
and qword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
and qword [rbp - 0x50], 0
lea ecx, [rsi + 0x47]
call fcn.14002be78
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x58], rax
and qword [rbp - 0x48], 0
and qword [rbp - 0x40], 0
lea ecx, [rsi + 0x1f]
call fcn.14002be78
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x48], rax
and dword [rbp - 0x38], 0
and qword [rsp + 0x78], 0
and qword [rbp - 0x78], 0
and qword [rsp + 0x70], 0
and qword [rbp - 0x80], 0
mov ebx, 0x13884
mov ecx, ebx
call fcn.14002bbd4
mov qword [rbp - 0x30], rax
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.14002dc80
nop
lea rax, [rsp + 0x70]
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
mov rax, qword [r14 + 8]
mov r8, qword [rax + 0x1d8]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rcx]
mov r9d, 0x1388
cmp rdx, r9
jae 0x140008eec
lea rax, [rdx + 1]
mov qword [rcx], rax
lea edx, [r8 - 0x100]
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
add rax, rax
mov qword [rcx + rax*8 - 8], rdx
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
add rax, rax
mov qword [rcx + rax*8], 0x200
mov rax, qword [r14 + 8]
mov rcx, qword [rbp - 0x30]
cmp dword [rax + 0x40], 0xc0000005
jne 0x140008f35
cmp dword [rax + 0x58], 2
jb 0x140008f35
mov edx, dword [rax + 0x68]
add edx, 0xfffffe00
je 0x140008f35
mov rax, qword [rcx]
cmp rax, r9
jae 0x140008f35
inc rax
mov qword [rcx], rax
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
add rax, rax
mov qword [rcx + rax*8 - 8], rdx
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
add rax, rax
mov qword [rcx + rax*8], 0x400
mov rbx, qword [r14 + 0x18]
mov r13d, 0x10
mov ecx, r13d
call fcn.14002be78
mov rdi, rax
mov qword [rbp], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetGuiResources]
mov eax, eax
mov qword [rdi], rax
mov edx, esi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetGuiResources]
mov eax, eax
mov qword [rdi + 8], rax
mov r9d, r13d
mov r8, rdi
mov edx, 0x11001
lea rcx, [rsp + 0x70]
call fcn.140018474
mov rax, qword [r14 + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [r14 + 8]
mov r13d, dword [rax + 0x18]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009096
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov eax, 0x19000
mov ebx, eax
mov ecx, eax
call fcn.14002bbd4
mov r15, rax
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
lea ecx, [r9 + 5]
call rdi
test eax, eax
jns 0x140008fff
cmp eax, 0xc0000004
jne 0x140009092
add ebx, 0x19000
mov rcx, r15
call fcn.14002bbcc
mov ecx, ebx
jmp 0x140008fc7
mov rdi, r15
cmp dword [r15 + 0x4c], r13d
je 0x140009018
cmp dword [rdi], 0
je 0x14000908a
mov eax, dword [rdi]
add rdi, rax
cmp dword [rdi + 0x4c], r13d
jne 0x140009008
mov r13d, 0x70
mov ecx, r13d
call fcn.14002be78
mov rbx, rax
mov qword [rbp - 8], rax
mov dword [rax], r13d
mov r8, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400185ac
mov rax, qword [rdi + 0x68]
mov qword [rbx + 0x28], rax
mov rax, qword [rdi + 0x70]
mov qword [rbx + 0x30], rax
mov eax, dword [rdi + 0x78]
mov qword [rbx + 0x20], rax
mov rax, qword [rdi + 0x80]
mov qword [rbx + 8], rax
mov rax, qword [rdi + 0x88]
mov qword [rbx + 0x10], rax
mov rax, qword [rdi + 0xc0]
mov qword [rbx + 0x18], rax
mov r9d, r13d
mov r8, rbx
mov edx, 0x11000
lea rcx, [rsp + 0x70]
call fcn.140018474
mov rcx, r15
call fcn.14002bbcc
or r15, 0xffffffffffffffff
cmp r12d, 0x20
je 0x140009183
mov rax, qword [r14 + 8]
mov rbx, qword [rax + 0x989]
test rbx, rbx
je 0x140009183
and qword [rbp + 0x70], 0
and qword [rbp + 0x60], 0
lea rdx, [rbx + 8]
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov edi, 8
mov r9d, edi
lea r8, [rbp + 0x70]
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140009183
cmp qword [rbp + 0x60], rdi
jne 0x140009183
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x140009183
add rcx, rcx
mov eax, edi
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.14002bbd4
mov rdi, rax
and qword [rbp + 0x60], 0
mov r9, qword [rbp + 0x70]
shl r9, 4
lea rdx, [rbx + 0x10]
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000917b
mov rcx, qword [rbp + 0x70]
mov rax, rcx
shl rax, 4
cmp qword [rbp + 0x60], rax
jne 0x14000917b
xor ebx, ebx
test rcx, rcx
je 0x14000917b
mov r11, rdi
mov r8, qword [r11 + 8]
mov rdx, qword [r11]
lea rcx, [rsp + 0x70]
call fcn.140018534
add rbx, rsi
lea r11, [r11 + 0x10]
cmp rbx, qword [rbp + 0x70]
jb 0x14000915d
mov rcx, rdi
call fcn.14002bbcc
mov rdi, qword [r14 + 0x18]
mov rax, qword [r14 + 8]
mov r13d, dword [rax + 0x18]
mov rbx, qword [rsp + 0x68]
mov r9d, r12d
mov r8, rbx
lea rdx, [0x140061bb0]
lea r15, [0x14005f5c0]
mov rcx, r15
call fcn.140025b7c
test rbx, rbx
je 0x140009495
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400091d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, esi
mov edx, 0x40000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400094ac
and dword [rbp + 0x68], 0
test rdi, rdi
jne 0x140009248
mov r8d, r13d
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov dword [rbp + 0x68], esi
test rax, rax
jne 0x140009248
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.OpenProcess_failed___ld_
mov rcx, r15
call fcn.140025b7c
jmp 0x1400094ac
xor r15d, r15d
mov r8, qword [rbp - 0x30]
mov r9, qword [r8]
shl r9, 4
add r9, 4
mov edx, 0x10fff
lea rcx, [rsp + 0x70]
call fcn.140018474
mov rax, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
sub rax, rcx
sar rax, 4
test rax, rax
je 0x140009288
mov dword [rbp - 0x20], eax
mov qword [rbp - 0x1c], rcx
lea r15, [rbp - 0x20]
lea rax, [0x140018090]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, r14
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x140009477
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8d, eax
lea rdx, str.MiniDumpWriteDump_failed_1__08X_
lea rcx, [0x14005f5c0]
call fcn.140025b7c
cmp ebx, 0x80070057
jne 0x1400094ac
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, r14
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x140009477
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r9d, eax
mov r8d, 2
lea rdx, str.MiniDumpWriteDump_failed__u__08X_
lea rcx, [0x14005f5c0]
call fcn.140025b7c
cmp ebx, 0x80070057
jne 0x1400094ac
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, r14
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x140009477
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r9d, eax
mov r8d, 3
lea rdx, str.MiniDumpWriteDump_failed__u__08X_
lea rcx, [0x14005f5c0]
call fcn.140025b7c
cmp ebx, 0x80070057
jne 0x1400094ac
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, r14
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x140009477
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r9d, eax
mov r8d, 4
lea rdx, str.MiniDumpWriteDump_failed__u__08X_
lea rcx, [0x14005f5c0]
call fcn.140025b7c
cmp ebx, 0x80070057
jne 0x1400094ac
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, r14
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x140009477
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 5
lea rdx, str.MiniDumpWriteDump_failed__u__08X_
lea rcx, [0x14005f5c0]
call fcn.140025b7c
jmp 0x1400094ac
and dword [rbp - 0x38], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0x68], 0
je 0x1400094ae
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400094ae
lea r9, [rsp + 0x40]
mov r8, rbx
lea rdx, str.Invalid_parameters__file_s__exceptioninfo_p
mov rcx, r15
call fcn.140025b7c
xor esi, esi
lea rcx, [rbp - 0x10]
call fcn.140018574
nop
lea rcx, [rsp + 0x70]
call fcn.1400183a4
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400094e3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, esi
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret