Function at 0x10001f80
Capabilities:
Create directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100142c1
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x1001d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x428], edi
xorps xmm0, xmm0
movups xmmword [edi + 0xc], xmm0
xor eax, eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 7
mov word [edi + 0xc], ax
mov dword [ebp - 4], eax
xor ecx, ecx
movups xmmword [edi + 0x24], xmm0
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], 7
mov word [edi + 0x24], cx
push 0x208
mov byte [ebp - 4], 1
call fcn.10002bb1
push 0x208
mov esi, eax
push 0
push esi
call fcn.100040f0
mov dword [edi], esi
add esp, 0x10
lea esi, [edi + 0xc]
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x10002023
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x24]
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 7
jbe 0x10002036
mov eax, dword [eax]
xor ecx, ecx
push 0x800
mov word [eax], cx
push ecx
push str.DbgHelp.dll
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov byte [edi + 0x40], cl
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [edi + 4], eax
test eax, eax
je 0x10002262
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10002252
push 0x208
mov dword [edi + 8], eax
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100040f0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x100020c0
push 0x10
push str.Win32MiniDump
push str.Failed_to_get_minidump_folder_path__1__
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100020e7
push 0x10
push str.Win32MiniDump
push str.Failed_to_get_minidump_folder_path__2__
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100040f0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10005880
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002140
sub ecx, edx
mov edx, dword [esi + 0x14]
sar ecx, 1
cmp ecx, edx
ja 0x10002190
mov dword [ebp - 0x424], esi
mov eax, esi
cmp edx, 7
jbe 0x1000216b
mov eax, dword [esi]
mov dword [ebp - 0x424], eax
mov dword [esi + 0x10], ecx
lea esi, [ecx + ecx]
push esi
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.10003b70
mov eax, dword [ebp - 0x424]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x100021ac
lea eax, [ebp - 0x218]
mov byte [ebp - 0x424], 0
push eax
push dword [ebp - 0x424]
push ecx
mov ecx, esi
call fcn.10002560
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.10003a41
add esp, 8
test eax, eax
je 0x100021c6
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
push str._s_s_Minidumps
push 0xffffffffffffffff
push 0x104
push dword [edi]
call fcn.10001e00
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1000220b
push 0x10
push str.Win32MiniDump
push str.Unable_to_get_minidump_folder_path__3__
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10002242
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10002242
push 0x10
push str.Win32MiniDump
push str.Unable_to_get_minidump_folder_path__4__
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
mov byte [edi + 0x40], 1
jmp 0x1000226c
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 4], 0
push dword [edi]
call fcn.10002bac
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10002823
mov esp, ebp
pop ebp
ret