Function at 0x40cc10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414c58
push 0x4099f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x2880
call fcn.004097b0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov al, byte [0x42991c]
test al, al
jne 0x40cce4
mov dword [ebp - 0xf38], 0x94
lea eax, [ebp - 0xf38]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov al, byte [0x42991d]
test al, al
jne 0x40cc80
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [0x42991d], 0
mov ecx, dword [ebp - 0xf2c]
push ecx
mov edx, dword [ebp - 0xf28]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0xb8]
push edx
push 0x66
push str._install_notify.php_pidcrashrptmodulereportv_dresult0messageCrashat_08xOS_d_d
lea eax, [ebp - 0xea4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x1338]
push ecx
lea edx, [ebp - 0xea4]
push edx
push str.legend.psdtools.com
call fcn.00413690
add esp, 0x24
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [0x42991c], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x840]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp - 0x634]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp - 0xc78]
rep stosd dword es:[edi], eax
push 0x206
lea eax, [ebp - 0x840]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
ja 0x40cd42
push str.Unknown
lea ecx, [ebp - 0x840]
push ecx
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
call esi
jmp 0x40cd48
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea edx, [ebp - 0x840]
push edx
call fcn.0040dcf0
add esp, 4
mov edi, eax
mov dword [ebp - 0xc9c], edi
push edi
lea eax, [ebp - 0x42c]
push eax
call esi
push 0x2e
lea ecx, [ebp - 0x42c]
push ecx
call fcn.0040d2e0
add esp, 8
test eax, eax
je 0x40cd81
mov byte [eax], 0
push str.ERRORLOG.TXT
push edi
call esi
lea edx, [ebp - 0x840]
push edx
lea eax, [ebp - 0x634]
push eax
call esi
push 0
push 0x80000080
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x634]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
jne 0x40cde7
push str.Error_creating_exception_report_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov byte [0x42991c], 1
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x84c], edx
mov ebx, dword [eax + 4]
mov dword [ebp - 0x848], ebx
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0xa54]
rep stosd dword es:[edi], eax
mov edi, str.Unknown
push 0x1c
lea eax, [ebp - 0xc94]
push eax
mov ecx, dword [ebx + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40ce64
push 0x206
lea edx, [ebp - 0xa54]
push edx
mov eax, dword [ebp - 0xc90]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jbe 0x40ce64
lea ecx, [ebp - 0xa54]
push ecx
call fcn.0040dcf0
add esp, 4
mov edi, eax
push 0x66
mov edx, dword [0x42d650]
push edx
mov eax, dword [0x42d64c]
push eax
push 0x42d54c
push str.Product_ID:__s_Version:__d_Build_Number:__d_CrashReport_version:__d_r_n_r_n
push esi
call fcn.0040d360
add esp, 0x18
push 0x42d654
push str.App_defined_extra_info:_r_n_s_r_n
push esi
call fcn.0040d360
add esp, 0xc
mov ecx, dword [ebp - 0x84c]
mov eax, dword [ecx]
mov edx, dword [ebx + 0xb8]
push edx
mov ecx, dword [ebx + 0xbc]
push ecx
push edi
push eax
push eax
call fcn.0040db00
add esp, 4
push eax
lea edx, [ebp - 0x42c]
push edx
push str._s_caused__s__0x_08x___r_nin_module__s_at__04x:_08x._r_n_r_n
push esi
call fcn.0040d360
add esp, 0x20
mov eax, dword [ebp + 0xc]
push eax
push str.Exception_handler_called_in__s._r_n
push esi
call fcn.0040d360
push esi
call fcn.0040d930
add esp, 0x10
mov eax, dword [ebp - 0x84c]
cmp dword [eax], 0xc0000005
jne 0x40cf3c
cmp dword [eax + 0x10], 2
jb 0x40cf3c
mov ecx, str.Read_from
mov edx, dword [eax + 0x14]
test edx, edx
je 0x40cf0d
mov ecx, str.Write_to
mov edx, dword [eax + 0x18]
push edx
push ecx
push str._s_location__08x_caused_an_access_violation._r_n
lea eax, [ebp - 0x1724]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x1724]
push ecx
push 0x429658
push esi
call fcn.0040d360
add esp, 0xc
push ebx
push esi
call fcn.0040e430
add esp, 8
push str._r_nBytes_at_CS:EIP:_r_n
push esi
call fcn.0040d360
add esp, 8
mov edx, dword [ebx + 0xb8]
mov dword [ebp - 0xc98], edx
xor edi, edi
mov dword [ebp - 0xca0], edi
cmp edi, 0x10
jge 0x40cfc8
mov dword [ebp - 4], 0
xor eax, eax
mov ecx, dword [ebp - 0xc98]
mov al, byte [edi + ecx]
push eax
push str._02x
push esi
call fcn.0040d360
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
inc edi
jmp 0x40cf62
mov edi, dword [ebx + 0xc4]
push 0x1c
lea edx, [ebp - 0xa70]
push edx
mov eax, dword [ebx + 0xb8]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
push 0x200
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0xa6c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x220]
push eax
call fcn.0040dcf0
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xa5c]
push ecx
mov edx, dword [ebp - 0xa68]
push edx
push str._r_n_r_n_new__Crash_location:__AP__08x_P__08x__r_n
push esi
call fcn.0040d360
add esp, 0x10
mov eax, dword [ebx + 0xb8]
mov ecx, dword [ebx + 0xb4]
push ecx
mov edx, eax
sub edx, dword [ebp - 0xa6c]
push edx
mov ecx, dword [ebp - 0x1c]
push ecx
push eax
push str._08x:__20s_08x__ebp__08x__r_n
push esi
call fcn.0040d360
add esp, 0x18
push str.______Before:
push esi
call fcn.0040d360
push 0xffffffffffffffff
push edi
mov edx, dword [ebx + 0xb4]
sub edx, 0x20
push edx
push esi
call fcn.0040dd10
add esp, 0x18
push 0x4299d4
push esi
call fcn.0040d360
push 0xffffffffffffffff
push edi
mov eax, dword [ebx + 0xb4]
sub eax, 0x10
push eax
push esi
call fcn.0040dd10
add esp, 0x18
push str._______After:
push esi
call fcn.0040d360
push 0xffffffffffffffff
push edi
mov ecx, dword [ebx + 0xb4]
push ecx
push esi
call fcn.0040dd10
add esp, 0x18
push 0x4299d4
push esi
call fcn.0040d360
push 0xffffffffffffffff
push edi
mov edx, dword [ebx + 0xb4]
add edx, 0x10
push edx
push esi
call fcn.0040dd10
add esp, 0x18
push 0x429784
push esi
call fcn.0040d360
mov eax, dword [ebx + 0xb4]
push eax
mov ecx, dword [ebx + 0xb8]
push ecx
push edi
push esi
call fcn.0040dde0
push edi
push esi
call fcn.0040e270
push esi
call fcn.0040d4c0
add esp, 0x24
push str.ERRORLOG.TXT
push str._r_n__end_of__s___r_n
push esi
call fcn.0040d360
push esi
call fcn.0040d320
add esp, 0x10
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
push str.CRASH.DMP
mov edx, dword [ebp - 0xc9c]
push edx
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
call esi
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0xc78]
push ecx
call esi
push 0
push 0x80000080
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0xc78]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d181
mov eax, dword [ebp + 8]
push eax
push esi
call fcn.0040d3c0
add esp, 8
push esi
call edi
push 0x80000
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
call esi
mov ebx, eax
mov dword [ebp - 0x1848], ebx
push 0x2af80
call esi
mov esi, eax
push 0x429998
push str.c:crash.txt
call dword [sym.imp.MSVCRT.dll_fopen]
mov dword [ebp - 0x1894], eax
mov ecx, 0xabe0
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push 0x40000
push ebx
lea ecx, [ebp - 0x634]
push ecx
push 0x1000
call fcn.0040e4f0
mov ebx, eax
add ebx, dword [ebp - 0x1848]
push 0x40000
push ebx
lea edx, [ebp - 0xc78]
push edx
push 0x1001
call fcn.0040e4f0
add esp, 0x30
add ebx, eax
push 0x66
mov eax, dword [0x42d650]
push eax
mov ecx, dword [0x42d64c]
push ecx
push 0x42d54c
push str.pid_sv_db_dcv_ddata
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x1740], ecx
mov edx, dword [ebp - 0x1848]
sub ebx, edx
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push ebx
push edx
call fcn.0040e560
add esp, 0x24
mov edi, eax
push esi
push edi
push ebx
push str.Compressing:__d_____d___60s_n
mov edx, dword [ebp - 0x1894]
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x14
test edi, edi
je 0x40d2a1
mov dword [ebp - 0x2898], 0x1000
mov eax, dword [ebp - 0x1740]
add eax, edi
mov byte [eax + esi], 0
lea ecx, [ebp - 0x2898]
push ecx
lea edx, [ebp - 0x2894]
push edx
push esi
push str._crash_crash.php
push str.legend.psdtools.com
call fcn.004139a0
add esp, 0x14
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
mov eax, dword [ebp - 0x1848]
push eax
call esi
add esp, 8
mov eax, 1
mov byte [0x42991c], al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret