Function at 0x10001c40
Capabilities:
Create directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100140c1
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.1000285f
push 0x208
mov esi, eax
push 0
push esi
call fcn.10003ef0
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 0x10001ce3
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 0x10001cf6
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 0x10001f1b
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001f0b
push 0x208
mov dword [edi + 8], eax
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10003ef0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10001d80
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 0x10001da7
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.10003ef0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10005680
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 0x10001e00
sub ecx, edx
mov edx, dword [esi + 0x14]
sar ecx, 1
cmp ecx, edx
ja 0x10001e50
mov dword [ebp - 0x424], esi
mov eax, esi
cmp edx, 7
jbe 0x10001e2b
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.10003970
mov eax, dword [ebp - 0x424]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x10001e65
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x428]
push ecx
mov ecx, esi
call fcn.10002220
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.10003844
add esp, 8
test eax, eax
je 0x10001e7f
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.10001ac0
add esp, 0x18
cmp eax, 0xffffffff
jne 0x10001ec4
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 0x10001efb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10001efb
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 0x10001f25
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 4], 0
push dword [edi]
call fcn.1000285a
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.100024d1
mov esp, ebp
pop ebp
ret