Function at 0x40f110
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, esp
and esp, 0xfffffff0
push ebp
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e720
push 0x418c6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbd8
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
movzx eax, byte [0x426010]
test eax, eax
jne 0x40f16e
xor eax, eax
mov esp, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov byte [0x426010], 0
mov eax, 0x200
pxor xmm0, xmm0
movq qword [ebp - 0x88], xmm0
pxor xmm0, xmm0
movaps xmmword [ebp + eax - 0x298], xmm0
movaps xmmword [ebp + eax - 0x2a8], xmm0
movaps xmmword [ebp + eax - 0x2b8], xmm0
movaps xmmword [ebp + eax - 0x2c8], xmm0
sub eax, 0x40
jne 0x40f186
lea edi, [ebp - 0x288]
push 0x206
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
ja 0x40f1d3
push 0x42159c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
mov eax, edi
call fcn.0040f6d0
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x6fc]
add esp, 4
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x6fc]
add esp, 0xfffffff8
mov edx, 0x2e
call fcn.0040f5c0
mov dword [ebp - 0x34], eax
add esp, 8
test eax, eax
je 0x40f20f
mov byte [eax], 0
push str.ERRORLOG.TXT
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
push esi
push 0x80000080
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x40f592
push 2
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebx + 8]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
pxor xmm0, xmm0
movq qword [ebp - 0x298], xmm0
mov eax, 0x200
pxor xmm0, xmm0
movaps xmmword [ebp + eax - 0x4a8], xmm0
movaps xmmword [ebp + eax - 0x4b8], xmm0
movaps xmmword [ebp + eax - 0x4c8], xmm0
movaps xmmword [ebp + eax - 0x4d8], xmm0
sub eax, 0x40
jne 0x40f26b
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x40], 0x42159c
lea eax, [ebp - 0x68]
push 0x1c
push eax
push dword [edx + 0xb8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f2db
lea esi, [ebp - 0x498]
push 0x206
push esi
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x40f2db
push eax
mov eax, esi
call fcn.0040f6d0
mov dword [ebp - 0x40], eax
add esp, 4
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
push eax
call fcn.0040f610
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
push dword [edx + 0xb8]
push dword [edx + 0xbc]
push dword [ebp - 0x40]
push dword [ecx]
push eax
lea eax, [ebp - 0x6fc]
push eax
push str._s_caused__s__0x_08x___r_nin_module__s_at__04x:_08x._r_n_r_n
push dword [ebp - 0x28]
call fcn.004151a0
push dword [ebx + 0xc]
push str.Exception_handler_called_in__s._r_n
push dword [ebp - 0x28]
call fcn.004151a0
add esp, 0x30
mov eax, dword [ebp - 0x28]
push eax
call fcn.004159c0
pop ecx
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0xc0000005
jne 0x40f37f
cmp dword [eax + 0x10], 2
jb 0x40f37f
cmp dword [eax + 0x14], 0
je 0x40f34f
mov dword [ebp - 0x4c], str.Write_to
jmp 0x40f356
mov dword [ebp - 0x4c], str.Read_from
push dword [eax + 0x18]
push dword [ebp - 0x4c]
lea esi, [ebp - 0xbe8]
push str._s_location__08x_caused_an_access_violation._r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
push 0x42167c
push dword [ebp - 0x28]
call fcn.004151a0
add esp, 0x1c
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x48]
add esp, 0xfffffff8
call fcn.00415c00
push str._r_nBytes_at_CS:EIP:_r_n
push dword [ebp - 0x28]
call fcn.004151a0
add esp, 0x10
mov eax, dword [ebp - 0x48]
mov edx, dword [eax + 0xb8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + edx]
push ecx
push str._02x
push dword [ebp - 0x28]
call fcn.004151a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 0x10
jl 0x40f3b0
mov eax, dword [ebp - 0x48]
push dword [eax + 0xc4]
push dword [ebp - 0x28]
call fcn.00415ca0
add esp, 8
mov eax, dword [ebp - 0x28]
push eax
call fcn.00415e90
push str.ERRORLOG.TXT
push str._r_n__end_of__s___r_n
push dword [ebp - 0x28]
call fcn.004151a0
add esp, 0x10
mov eax, dword [ebp - 0x28]
push eax
call fcn.0040f690
pop ecx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CRASH.DMP
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [ebp - 0x288]
xor eax, eax
push eax
push 0x80000080
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x40f475
push dword [ebx + 8]
push dword [ebp - 0x3c]
call fcn.00415f60
add esp, 8
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f49b
xor eax, eax
mov esp, dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.XCrashReport.exe
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea esi, [ebp - 0x800]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4216dc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 0x200
pxor xmm0, xmm0
movq qword [ebp - 0x88], xmm0
pxor xmm0, xmm0
movaps xmmword [ebp + eax - 0x298], xmm0
movaps xmmword [ebp + eax - 0x2a8], xmm0
movaps xmmword [ebp + eax - 0x2b8], xmm0
movaps xmmword [ebp + eax - 0x2c8], xmm0
sub eax, 0x40
jne 0x40f4d4
push 0x206
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
mov eax, edi
call fcn.0040f6d0
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4216e0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pxor xmm0, xmm0
movaps xmmword [ebp - 0x4e8], xmm0
movaps xmmword [ebp - 0x4d8], xmm0
movaps xmmword [ebp - 0x4c8], xmm0
movaps xmmword [ebp - 0x4b8], xmm0
movd dword [ebp - 0x4a8], xmm0
mov dword [ebp - 0x4e8], 0x44
mov eax, 5
mov word [ebp - 0x4b8], ax
mov dword [ebp - 0x4bc], 1
pxor xmm0, xmm0
movaps xmmword [ebp - 0x78], xmm0
mov esp, dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Error_creating_exception_report_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov esp, dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret