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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f6bf
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x100a9080]
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 0x10009b5f
mov edx, dword [edi]
test edx, edx
je 0x10009b5f
mov eax, dword [0x100b392c]
mov ecx, dword [0x100b3930]
mov edx, dword [edx]
cmp eax, ecx
je 0x10009b5f
nop word [eax + eax]
cmp edx, dword [eax]
je 0x10009cb8
add eax, 4
cmp eax, ecx
jne 0x10009b50
push str.crashes
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10009b73
test al, 0x10
jne 0x10009b9c
push 0
push str.crashes
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10009b9c
mov edx, str.Failed_to_create_crashes_folder.
mov ecx, 0x100b2ab0
call fcn.100072d0
push eax
call fcn.10007570
add esp, 4
push 0
call fcn.1005e8f4
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x160], edx
push eax
call fcn.1005d71b
push 0x98
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.10057da0
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 0x10009c20
mov dword [ebp - 0x2f0], ecx
lea edx, [ebp - 0x2f8]
mov ecx, eax
call fcn.1000bd10
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 0x10009ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10009ceb
mov edx, str.Could_not_create_directory:
mov ecx, 0x100b2ab0
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.1000caa0
push eax
call fcn.10007570
jmp 0x10009dc3
mov edx, str.Non_crash_exception_detected__skipping_mini_dump_generation.
mov ecx, 0x100b2ab0
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.10055fba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x11c]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0xd
jb 0x1000a465
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.1000c7f0
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 0x10009e07
mov edx, str.Could_not_create_dump_file.
mov ecx, 0x100b2ab0
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 0x10009dc6
mov edx, dword [ebp - 0x17c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10009dbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a474
push ecx
push edx
call fcn.10056002
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x1000a3cf
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a3c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a46a
jmp 0x1000a3c5
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 0x1000a465
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.1000c7f0
mov byte [ebp - 4], 3
test esi, esi
jne 0x10009ec2
mov edx, str.Failed_to_write_dump_file.
mov ecx, 0x100b2ab0
call fcn.100072d0
push eax
call fcn.10007570
add esp, 4
jmp 0x1000a304
push 0xb0
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.10057da0
add esp, 0xc
mov dword [ebp - 0x22c], 0x100901e0
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.1000bc60
sub esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x228]
push esi
call fcn.1000bba0
test eax, eax
jne 0x10009fcc
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 0x1000a2f5
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 0x1000a027
mov eax, dword [eax]
push edx
mov edx, eax
call fcn.1000caa0
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.2.97
mov ecx, eax
call fcn.100072d0
push eax
call fcn.10007570
push eax
call fcn.10007570
add esp, 0x14
test edi, edi
je 0x1000a2bd
cmp dword [edi], 0
je 0x1000a2bd
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.1000b4b0
push eax
call fcn.10007570
mov ecx, dword [0x100b3924]
add esp, 4
mov esi, dword [edi]
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x1000a0e4
mov edx, dword [esi]
nop dword [eax]
cmp dword [eax + 0x10], edx
jae 0x1000a0da
mov eax, dword [eax + 8]
jmp 0x1000a0de
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1000a0d0
cmp byte [ecx + 0xd], 0
jne 0x1000a141
mov eax, dword [esi]
cmp eax, dword [ecx + 0x10]
jb 0x1000a141
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.1000b160
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x1000a12e
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, esi
call fcn.1000caa0
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.1000b300
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 0x1000a1f3
push 0x104
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x2ec]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000a1f3
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 0x1000a1e0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
jmp 0x1000a218
xorps xmm0, xmm0
mov dword [ebp - 0x134], 0
push 0
movups xmmword [ebp - 0x144], xmm0
mov dword [ebp - 0x130], 0
push 0x1008fa09
lea ecx, [ebp - 0x144]
call fcn.10007860
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x22c]
cmp dword [ebp - 0x134], 0
je 0x1000a26c
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.1000caa0
push eax
call fcn.10007570
add esp, 8
jmp 0x1000a27f
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 0x1000a2bd
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a2b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a46f
push ecx
push edx
call fcn.10056002
add esp, 8
lea ecx, [ebp - 0x228]
call fcn.1000b9a0
test eax, eax
jne 0x1000a2f5
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.1000a480
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.10009750
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x148]
cmp ecx, 0xf
jbe 0x1000a369
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a35f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a474
push ecx
push edx
call fcn.10056002
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 0x10009dc6
mov edx, dword [ebp - 0x17c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10009dbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a474
jmp 0x10009dbc
push ecx
push edx
call fcn.10056002
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.10054e45
jmp 0x10009ccd
call fcn.10003780
call fcn.1005d2a4
call fcn.1005d2a4
call fcn.1005d2a4
int3