Function at 0x10009b10
Capabilities:
Check if file exists
Create directory
Create process memory minidump
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100df7cf
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x10136080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2ec], edx
mov edi, ecx
mov dword [ebp - 0x300], 0
test edi, edi
je 0x10009b7f
mov edx, dword [edi]
test edx, edx
je 0x10009b7f
mov eax, dword [0x101417dc]
mov ecx, dword [0x101417e0]
mov edx, dword [edx]
cmp eax, ecx
je 0x10009b7f
nop word [eax + eax]
cmp edx, dword [eax]
je 0x10009cd8
add eax, 4
cmp eax, ecx
jne 0x10009b70
push str.crashes
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10009b93
test al, 0x10
jne 0x10009bbc
push 0
push str.crashes
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10009bbc
mov edx, str.Failed_to_create_crashes_folder.
mov ecx, 0x10140960
call fcn.100072d0
push eax
call fcn.10007570
add esp, 4
push 0
call fcn.100be974
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x160], edx
push eax
call fcn.100bd79b
push 0x98
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.100b7e20
add esp, 0x14
lea ecx, [ebp - 0x2c4]
call fcn.10004cf0
mov edx, str.crashes_
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c4]
call fcn.100072d0
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2f4], str._Y__m__d__H__M__S
mov dword [ebp - 0x2f8], ecx
mov ecx, str._Y__m__d__H__M__S
mov dword [ebp - 0x2f0], str._Y__m__d__H__M__S
nop
inc ecx
cmp byte [ecx], 0
jne 0x10009c40
mov dword [ebp - 0x2f0], ecx
lea edx, [ebp - 0x2f8]
mov ecx, eax
call fcn.1000bd30
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.10005f30
mov byte [ebp - 4], 1
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0xf
push 0
cmova eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10009d0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10009d0b
mov edx, str.Could_not_create_directory:
mov ecx, 0x10140960
call fcn.100072d0
cmp dword [ebp - 0x118], 0xf
lea edx, [ebp - 0x12c]
push dword [ebp - 0x11c]
cmova edx, dword [ebp - 0x12c]
mov ecx, eax
call fcn.1000cac0
push eax
call fcn.10007570
jmp 0x10009de3
mov edx, str.Non_crash_exception_detected__skipping_mini_dump_generation.
mov ecx, 0x10140960
call fcn.100072d0
push eax
call fcn.10007570
add esp, 4
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.100b603d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x11c]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0xd
jb 0x1000a485
cmp dword [ebp - 0x118], 0xf
lea eax, [ebp - 0x12c]
push 0xd
cmova eax, dword [ebp - 0x12c]
push str.minidump.dmp
push ecx
push eax
push ecx
push dword [ebp - 0x2ec]
lea ecx, [ebp - 0x17c]
call fcn.1000c810
push 0
push 0x80
push 2
push 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x17c]
cmp dword [ebp - 0x168], 0xf
push 0
cmova eax, dword [ebp - 0x17c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2fc], eax
cmp eax, 0xffffffff
jne 0x10009e27
mov edx, str.Could_not_create_dump_file.
mov ecx, 0x10140960
call fcn.100072d0
push eax
call fcn.10007570
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x168]
cmp ecx, 0xf
jbe 0x10009de6
mov edx, dword [ebp - 0x17c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10009ddc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a494
push ecx
push edx
call fcn.100b6085
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x1000a3ef
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a3e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a48a
jmp 0x1000a3e5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x2f8], eax
mov dword [ebp - 0x2f4], edi
mov dword [ebp - 0x2f0], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
xor edx, edx
lea ecx, [ebp - 0x2f8]
push 0
test edi, edi
cmove ecx, edx
push ecx
push 0x1124
push dword [ebp - 0x2fc]
push esi
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov edx, dword [ebp - 0x11c]
mov esi, eax
mov eax, 0x7fffffff
sub eax, edx
cmp eax, 0x11
jb 0x1000a485
cmp dword [ebp - 0x118], 0xf
lea ecx, [ebp - 0x12c]
push 0x11
cmova ecx, dword [ebp - 0x12c]
push str.crash_reason.txt
push edx
push ecx
push ecx
push dword [ebp - 0x2ec]
lea ecx, [ebp - 0x15c]
call fcn.1000c810
mov byte [ebp - 4], 3
test esi, esi
jne 0x10009ee2
mov edx, str.Failed_to_write_dump_file.
mov ecx, 0x10140960
call fcn.100072d0
push eax
call fcn.10007570
add esp, 4
jmp 0x1000a324
push 0xb0
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.100b7e20
add esp, 0xc
mov dword [ebp - 0x22c], 0x101051e0
cmp dword [ebp - 0x148], 0xf
lea esi, [ebp - 0x15c]
lea ecx, [ebp - 0x1c4]
cmova esi, dword [ebp - 0x15c]
call fcn.100060f0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x22c]
push 0
mov dword [ebp - 0x300], 0xf
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x230], eax
lea ecx, [ebp - 0x22c]
mov eax, dword [ebp - 0x22c]
add ecx, dword [eax + 4]
lea eax, [ebp - 0x228]
push eax
call fcn.10006da0
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x230], eax
lea ecx, [ebp - 0x228]
call fcn.1000bc80
sub esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x228]
push esi
call fcn.1000bbc0
test eax, eax
jne 0x10009fec
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x22c]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10004160
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x230], eax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x1dc], 0
je 0x1000a315
mov edx, str.Unhandled_exception_occurred:
lea ecx, [ebp - 0x22c]
call fcn.100072d0
mov ecx, eax
mov eax, dword [ebp - 0x2ec]
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x1000a047
mov eax, dword [eax]
push edx
mov edx, eax
call fcn.1000cac0
push eax
call fcn.10007570
push eax
call fcn.10007570
mov edx, str.Zeal_Version:
lea ecx, [ebp - 0x22c]
call fcn.100072d0
mov edx, str.0.3.40
mov ecx, eax
call fcn.100072d0
push eax
call fcn.10007570
push eax
call fcn.10007570
add esp, 0x14
test edi, edi
je 0x1000a2dd
cmp dword [edi], 0
je 0x1000a2dd
mov edx, str.Exception_Code:_0x
lea ecx, [ebp - 0x22c]
call fcn.100072d0
mov esi, eax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + esi + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + esi + 0x14], ecx
mov ecx, esi
mov eax, dword [edi]
push dword [eax]
call fcn.1000b4d0
push eax
call fcn.10007570
mov ecx, dword [0x101417d4]
add esp, 4
mov esi, dword [edi]
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x1000a104
mov edx, dword [esi]
nop dword [eax]
cmp dword [eax + 0x10], edx
jae 0x1000a0fa
mov eax, dword [eax + 8]
jmp 0x1000a0fe
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1000a0f0
cmp byte [ecx + 0xd], 0
jne 0x1000a161
mov eax, dword [esi]
cmp eax, dword [ecx + 0x10]
jb 0x1000a161
mov edx, str.Exception_String:
lea ecx, [ebp - 0x22c]
call fcn.100072d0
mov esi, eax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + esi + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + esi + 0x14], ecx
push dword [edi]
call fcn.1000b180
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x1000a14e
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, esi
call fcn.1000cac0
push eax
call fcn.10007570
add esp, 8
mov edx, str.Exception_Address:_0x
lea ecx, [ebp - 0x22c]
call fcn.100072d0
mov esi, eax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + esi + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + esi + 0x14], ecx
mov ecx, esi
mov eax, dword [edi]
push dword [eax + 0xc]
call fcn.1000b320
push eax
call fcn.10007570
mov eax, dword [edi]
lea ecx, [ebp - 0x2ec]
add esp, 4
push ecx
push dword [eax + 0xc]
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x1000a213
push 0x104
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x2ec]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000a213
xorps xmm0, xmm0
mov dword [ebp - 0x134], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x130], 0
movups xmmword [ebp - 0x144], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a200
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
jmp 0x1000a238
xorps xmm0, xmm0
mov dword [ebp - 0x134], 0
push 0
movups xmmword [ebp - 0x144], xmm0
mov dword [ebp - 0x130], 0
push 0x10104a09
lea ecx, [ebp - 0x144]
call fcn.10007860
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x22c]
cmp dword [ebp - 0x134], 0
je 0x1000a28c
mov edx, str.Exception_occurred_in_module:
call fcn.100072d0
cmp dword [ebp - 0x130], 0xf
lea edx, [ebp - 0x144]
push dword [ebp - 0x134]
cmova edx, dword [ebp - 0x144]
mov ecx, eax
call fcn.1000cac0
push eax
call fcn.10007570
add esp, 8
jmp 0x1000a29f
mov edx, str.Module_information_not_available.
call fcn.100072d0
push eax
call fcn.10007570
add esp, 4
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x130]
cmp ecx, 0xf
jbe 0x1000a2dd
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a2d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a48f
push ecx
push edx
call fcn.100b6085
add esp, 8
lea ecx, [ebp - 0x228]
call fcn.1000b9c0
test eax, eax
jne 0x1000a315
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x22c]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10004160
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.1000a4a0
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x15c]
push eax
lea edx, [ebp - 0x17c]
lea ecx, [ebp - 0x12c]
call fcn.10009770
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x148]
cmp ecx, 0xf
jbe 0x1000a389
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a37f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a494
push ecx
push edx
call fcn.100b6085
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
cmp ecx, 0xf
jbe 0x10009de6
mov edx, dword [ebp - 0x17c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10009ddc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a494
jmp 0x10009ddc
push ecx
push edx
call fcn.100b6085
add esp, 8
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2c8], eax
lea ecx, [ebp - 0x2c0]
call fcn.10004920
mov eax, dword [ebp - 0x2c4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2c8], eax
lea eax, [ebp - 0x274]
mov dword [ebp - 4], 0xa
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.100b4ec5
jmp 0x10009ced
call fcn.10003780
call fcn.100bd324
call fcn.100bd324
call fcn.100bd324
int3