Function at 0x41ffa0
Capabilities:
Check for sandbox and av modules
Check if file exists
Delete file
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
push edi
push esi
push 0x491090
push 0x48b3c4
mov dword [ebp - 4], ecx
call fcn.00430910
mov eax, dword [ebp + 8]
add esp, 0x10
test esi, esi
je 0x4202dd
test eax, eax
je 0x4202dd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ffec
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
je 0x4202f1
push 0x491134
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x42004c
push 0x491134
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x42004c
push str.Load_dbghelp.dll_failed
push 0x48b3c4
call fcn.00430910
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x420085
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_of_MiniDumpWriteDump_failed___ld_
push 0x48b3c4
call fcn.00430910
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xc], 0
test ebx, ebx
jne 0x4200d3
push dword [ebp + 0x10]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0xc], 1
test ebx, ebx
jne 0x4200d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess_failed___ld_
push 0x48b3c4
call fcn.00430910
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [ebp - 4]
mov dword [ebp + 0xc], 0
mov ecx, dword [edx + 0x30]
push ecx
mov eax, dword [ecx]
lea eax, [eax*8 + 4]
push eax
push ecx
push 0x10fff
mov ecx, edx
call fcn.00420300
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x420140
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [ebp - 4]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp + 0xc], eax
jmp 0x420145
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], 0x41fbd0
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push ebx
call esi
test eax, eax
jne 0x420299
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.MiniDumpWriteDump_failed_1__08X_
push 0x48b3c4
call fcn.00430910
add esp, 0xc
cmp esi, 0x80070057
jne 0x4202f1
lea eax, [ebp - 0x14]
and edi, 0xfffff7ff
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push ebx
call dword [ebp - 8]
test eax, eax
jne 0x420299
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 2
push str.MiniDumpWriteDump_failed__u__08X_
push 0x48b3c4
call fcn.00430910
add esp, 0x10
cmp esi, 0x80070057
jne 0x4202f1
lea eax, [ebp - 0x14]
and edi, 0xfffffeff
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push ebx
call dword [ebp - 8]
test eax, eax
jne 0x420299
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 3
push str.MiniDumpWriteDump_failed__u__08X_
push 0x48b3c4
call fcn.00430910
add esp, 0x10
cmp esi, 0x80070057
jne 0x4202f1
lea eax, [ebp - 0x14]
and edi, 0xffffffbf
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push ebx
call dword [ebp - 8]
test eax, eax
jne 0x420299
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 4
push str.MiniDumpWriteDump_failed__u__08X_
push 0x48b3c4
call fcn.00430910
add esp, 0x10
cmp esi, 0x80070057
jne 0x4202f1
lea eax, [ebp - 0x14]
and edi, 0xffffffdf
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push ebx
call dword [ebp - 8]
test eax, eax
jne 0x420299
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 5
push str.MiniDumpWriteDump_failed__u__08X_
jmp 0x4202e4
mov eax, dword [ebp - 4]
push 0
push dword [ebp + 0x18]
mov dword [eax + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
call esi
cmp dword [ebp - 0xc], 0
je 0x4202cf
push ebx
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push eax
push esi
push str.Invalid_parameters__file_s__exceptioninfo_p
push 0x48b3c4
call fcn.00430910
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18