Function at 0x414e97
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xb08]
sub esp, 0xb08
push 0xfffffffffffffffe
push 0x471780
push 0x4452d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4777a8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0xb04], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x28], esi
cmp byte [0x479990], 0
jne 0x414ef0
xor eax, eax
jmp 0x415251
mov byte [0x479990], 0
push 0x208
xor edi, edi
push edi
lea eax, [ebp + 0x8fc]
push eax
call fcn.00444c50
add esp, 0xc
push 0x206
lea eax, [ebp + 0x8fc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
ja 0x414f37
push str.Unknown
lea eax, [ebp + 0x8fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x8fc]
push eax
call fcn.00414c84
pop ecx
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp + 0x5f0]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call ebx
lea eax, [ebp + 0x5f0]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414f5d
dec eax
lea ecx, [ebp + 0x5f0]
cmp eax, ecx
je 0x414f74
cmp byte [eax], 0x2e
jne 0x414f64
cmp byte [eax], 0x2e
je 0x414f7b
xor eax, eax
cmp eax, edi
je 0x414f82
mov byte [eax], 0
push str.ERRORLOG.TXT
push dword [ebp - 0x20]
call ebx
push edi
push 0x80000080
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp + 0x8fc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x30], ebx
cmp ebx, 0xffffffff
jne 0x414fc2
push str.Error_creating_exception_report_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x414ee9
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esi]
mov esi, dword [esi + 4]
mov dword [ebp - 0x24], esi
push 0x208
push 0
lea eax, [ebp + 0x3e8]
push eax
call fcn.00444c50
add esp, 0xc
mov dword [ebp - 0x1c], str.Unknown
push 0x1c
lea eax, [ebp - 0x4c]
push eax
push dword [esi + 0xb8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415031
push 0x206
lea eax, [ebp + 0x3e8]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x415031
lea eax, [ebp + 0x3e8]
push eax
call fcn.00414c84
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
push dword [esi + 0xb8]
push dword [esi + 0xbc]
push dword [ebp - 0x1c]
push eax
push eax
call fcn.00414b08
pop ecx
push eax
lea eax, [ebp + 0x5f0]
push eax
push str._s_caused__s__0x_08x___r_nin_module__s_at__04x:_08x._r_n_r_n
push ebx
call fcn.0041445f
push 0x468fac
push str.Exception_handler_called_in__s._r_n
push ebx
call fcn.0041445f
add esp, 0x2c
call fcn.00414921
cmp dword [edi], 0xc0000005
jne 0x4150b8
cmp dword [edi + 0x10], 2
jb 0x4150b8
mov eax, str.Read_from
cmp dword [edi + 0x14], 0
je 0x415093
mov eax, str.Write_to
push dword [edi + 0x18]
push eax
push str._s_location__08x_caused_an_access_violation._r_n
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp]
push eax
push 0x464670
push ebx
call fcn.0041445f
add esp, 0x1c
mov edi, ebx
call fcn.00414e06
push str._r_nBytes_at_CS:EIP:_r_n
push ebx
call fcn.0041445f
pop ecx
pop ecx
mov eax, dword [esi + 0xb8]
mov dword [ebp - 0x2c], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jge 0x41512c
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x2c]
movzx eax, byte [eax + ecx]
push eax
push str._02x
push ebx
call fcn.0041445f
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x415127
inc dword [ebp - 0x1c]
jmp 0x4150da
push dword [esi + 0xc4]
push ebx
call fcn.00414c9b
push ebx
call fcn.0041487e
push str.ERRORLOG.TXT
push str._r_n__end_of__s___r_n
push ebx
call fcn.0041445f
add esp, 0x18
cmp dword [0x480198], edi
jle 0x415179
push edi
lea eax, [ebp - 0x24]
push eax
mov esi, 0x47cab0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x480198], edi
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push str.CRASH.DMP
push dword [ebp - 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call ebx
push edi
push 0x80000080
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp + 0x8fc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4151c3
push dword [ebp - 0x28]
push edi
call fcn.004144b1
pop ecx
pop ecx
push edi
call esi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x414ee9
push str.XCrashReport.exe
push dword [ebp - 0x20]
call ebx
lea eax, [ebp + 0x8fc]
push eax
lea eax, [ebp + 0x7f8]
push eax
call ebx
push 0x469718
lea eax, [ebp + 0x7f8]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push 0x208
push 0
lea eax, [ebp + 0x8fc]
push eax
call fcn.00444c50
add esp, 0xc
push 0x206
lea eax, [ebp + 0x8fc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x8fc]
push eax
call fcn.00414c84
pop ecx
push eax
lea eax, [ebp + 0x7f8]
push eax
call esi
push 0x467304
lea eax, [ebp + 0x7f8]
push eax
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb04]
xor ecx, ebp
call fcn.004410db
add ebp, 0xb08
leave
ret