Function at 0x5828a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x6340c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6802a4], 0
push edi
mov edi, ecx
je 0x582bb9
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c76f0
push str._YYYYMMDDHHMMSS.mdmp
call fcn.004d4367
mov esi, 0x103
push 0x5e4ba4
sub esi, eax
call fcn.004d4367
push 0x5f9bdc
sub esi, eax
call fcn.004d4367
add esp, 0x18
sub esi, eax
lea eax, [ebp - 0x20c]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x582931
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleFileName
push 0x45
push 0x154
jmp 0x5829ba
push 0x6803b0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5829fb
test al, 0x10
je 0x5829fb
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004c76f0
add esp, 0xc
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [ebp - 0x428]
test eax, eax
jne 0x5829dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x5829a9
movzx eax, ax
or eax, 0x80070000
push 0
push 0
push eax
push str.GetFullPathName
push 0x45
push 0x165
push str.C:drone_src_srcCommonUtilityMinidump.cpp
push str.CExceptionHandlerEx::GenerateMiniDump
call fcn.00573980
add esp, 0x20
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret
push eax
push 0x6803b0
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005850a0
add esp, 0x14
push ebx
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x20c]
push eax
call fcn.004d4367
movzx ecx, word [ebp - 0x418]
mov edx, eax
movzx eax, word [ebp - 0x424]
push ecx
movzx ecx, word [ebp - 0x41a]
push ecx
movzx ecx, word [ebp - 0x41c]
push ecx
movzx ecx, word [ebp - 0x41e]
push ecx
movzx ecx, word [ebp - 0x422]
push ecx
push eax
push 0x5e4ba4
mov eax, 0x104
sub eax, edx
push str.__s__.4d_.2d_.2d_.2d_.2d_.2d.mdmp
push eax
lea eax, [ebp - 0x20c]
lea eax, [eax + edx*2]
push eax
call fcn.005850a0
add esp, 0x2c
lea eax, [ebp - 0x20c]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x582ad2
lea eax, [ebp - 0x20c]
push eax
push str.Unable_to_create_file__ls
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile
push 0x45
push 0x187
push str.C:drone_src_srcCommonUtilityMinidump.cpp
push str.CExceptionHandlerEx::GenerateMiniDump
call fcn.00573980
add esp, 0x24
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x434]
push eax
push 8
push ebx
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x42c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x6802a4]
mov ecx, esi
push eax
call dword [0x5c3794]
call esi
test eax, eax
jne 0x582b47
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MiniDumpWriteDump
push 0x45
push 0x1a2
push str.C:drone_src_srcCommonUtilityMinidump.cpp
push str.CExceptionHandlerEx::GenerateMiniDump
call fcn.00573980
add esp, 0x20
jmp 0x582bb0
test edi, edi
je 0x582b8b
mov ecx, dword [edi]
test ecx, ecx
je 0x582b8b
mov ecx, dword [ecx]
lea eax, [ebp - 0x20c]
push eax
call fcn.00582650
push eax
mov eax, dword [edi]
push str._ls.__A_mindump_file_is_located_at:__ls
push 0
push dword [eax]
push str.UNHANDLED_EXCEPTION
push 0x45
push 0x1ad
push str.C:drone_src_srcCommonUtilityMinidump.cpp
push str.CExceptionHandlerEx::GenerateMiniDump
call fcn.00573980
add esp, 0x28
jmp 0x582bb0
lea eax, [ebp - 0x20c]
push eax
push str.UNHANDLED_EXCEPTION._A_mindump_file_is_located_at:__ls
push 0x45
push 0x1bb
push str.C:drone_src_srcCommonUtilityMinidump.cpp
push str.CExceptionHandlerEx::GenerateMiniDump
call fcn.00573940
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004c59c5
mov esp, ebp
pop ebp
ret