Function at 0x412820
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x458c80
push 0x4356d0
mov eax, dword fs:[0]
push eax
sub esp, 0x738
mov eax, dword [0x4630b0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x714], eax
cmp dword [0x46514c], 0
jne 0x41294f
mov dword [0x46514c], 1
mov eax, dword [str.Unknown]
mov dword [ebp - 0x224], eax
mov eax, dword [0x44e124]
mov dword [ebp - 0x220], eax
push 0xfc
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.00434f70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ecx, ecx
cmp ecx, eax
sbb al, al
and byte [ebp - 0x120], al
push 0x5c
lea eax, [ebp - 0x120]
push eax
call fcn.00436280
add esp, 8
mov esi, eax
test esi, esi
je 0x4128e2
inc esi
jmp 0x4128e8
lea esi, [ebp - 0x120]
push esi
lea eax, [ebp - 0x224]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
push 0x2e
lea eax, [ebp - 0x224]
push eax
call fcn.00436280
add esp, 8
test eax, eax
je 0x412910
mov byte [eax], 0
push str.Error.txt
push esi
call edi
push 0
push 0x80000080
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x728], edi
cmp edi, 0xffffffff
jne 0x412956
push str.Error_creating_exception_report
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x412d37
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push str._r_nLog_started:_r_n_r_n
push edi
call fcn.00413130
add esp, 8
mov eax, dword [ebx]
mov dword [ebp - 0x718], eax
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x71c], ebx
mov esi, str.Unknown
push 0x1c
lea eax, [ebp - 0x748]
push eax
push dword [ebx + 0xb8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4129dc
push 0x104
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0x744]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4129dc
push 0x5c
lea eax, [ebp - 0x328]
push eax
call fcn.00436280
add esp, 8
mov esi, eax
test esi, esi
je 0x4129d6
inc esi
jmp 0x4129dc
lea esi, [ebp - 0x328]
push dword [ebx + 0xb8]
push dword [ebx + 0xbc]
push esi
mov esi, dword [ebp - 0x718]
push dword [esi]
call fcn.004125c0
add esp, 4
push eax
lea eax, [ebp - 0x224]
push eax
push str._s_caused__s_in_module__s_at__0.4X:_0.8X._r_n
push edi
call fcn.00413130
push dword [ebp - 0x714]
push str.Exception_handler_called_in__s._r_n
push edi
call fcn.00413130
push edi
call fcn.00412e00
add esp, 0x2c
cmp dword [esi], 0xc0000005
jne 0x412a70
cmp dword [esi + 0x10], 2
jb 0x412a70
mov ecx, str.Read_from
mov eax, str.Write_to
cmp dword [esi + 0x14], 0
cmove eax, ecx
push dword [esi + 0x18]
push eax
push str._s_location__0.8X_caused_an_access_violation._r_n
lea eax, [ebp - 0x710]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x710]
push eax
push 0x44e4fc
push edi
call fcn.00413130
add esp, 0x1c
push 0x44a9d0
push edi
call fcn.00413130
push str.Registers:_r_n
push edi
call fcn.00413130
push dword [ebx + 0xc0]
push dword [ebx + 0xb8]
push dword [ebx + 0xbc]
push dword [ebx + 0xb0]
push str.EAX_0.8X_CS_0.4X_EIP_0.8X_EFLGS_0.8X_r_n
push edi
call fcn.00413130
push dword [ebx + 0xb4]
push dword [ebx + 0xc4]
push dword [ebx + 0xc8]
push dword [ebx + 0xa4]
push str.EBX_0.8X_SS_0.4X_ESP_0.8X_EBP_0.8X_r_n
push edi
call fcn.00413130
add esp, 0x40
push dword [ebx + 0x90]
push dword [ebx + 0xa0]
push dword [ebx + 0x98]
push dword [ebx + 0xac]
push str.ECX_0.8X_DS_0.4X_ESI_0.8X_FS_0.4X_r_n
push edi
call fcn.00413130
push dword [ebx + 0x8c]
push dword [ebx + 0x9c]
push dword [ebx + 0x94]
push dword [ebx + 0xa8]
push str.EDX_0.8X_ES_0.4X_EDI_0.8X_GS_0.X_r_n
push edi
call fcn.00413130
push str.Bytes_at_CS:EIP:_r_n
push edi
call fcn.00413130
add esp, 0x38
mov eax, dword [ebx + 0xb8]
mov dword [ebp - 0x714], eax
xor esi, esi
mov dword [ebp - 0x718], esi
cmp esi, 0x10
jge 0x412b9f
mov dword [ebp - 4], 0
movzx eax, byte [esi + eax]
push eax
push str._0.2X
push edi
call fcn.00413130
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x714]
inc esi
jmp 0x412b31
push str._r_nStack_dump:_r_n
push edi
call fcn.00413130
add esp, 8
mov dword [ebp - 4], 1
mov ebx, dword [ebx + 0xc4]
mov dword [ebp - 0x72c], ebx
mov eax, dword fs:[4]
mov dword [ebp - 0x714], eax
lea eax, [ebx + 0x2000]
mov ecx, dword [ebp - 0x714]
cmp ecx, eax
cmova ecx, eax
mov dword [ebp - 0x714], ecx
mov dword [ebp - 0x724], 0
mov byte [ebp - 0x710], 0
push 0x3e7
push 0
lea eax, [ebp - 0x70f]
push eax
call fcn.00434f70
lea esi, [ebp - 0x710]
mov dword [ebp - 0x720], esi
add esp, 0xc
jmp 0x412c20
lea eax, [ebx + 4]
mov dword [ebp - 0x71c], eax
mov ecx, dword [ebp - 0x714]
cmp eax, ecx
ja 0x412ce7
mov eax, dword [ebp - 0x724]
and eax, 0x80000007
jns 0x412c49
dec eax
or eax, 0xfffffff8
inc eax
jne 0x412c69
push ebx
push str._0.8X:
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add esi, eax
mov dword [ebp - 0x720], esi
mov ecx, dword [ebp - 0x714]
mov edx, 0x44a978
mov eax, dword [ebp - 0x724]
inc eax
mov dword [ebp - 0x724], eax
and eax, 0x80000007
jns 0x412c87
dec eax
or eax, 0xfffffff8
inc eax
je 0x412c90
lea eax, [ebx + 8]
cmp eax, ecx
jbe 0x412c95
mov edx, 0x44a9d0
push edx
push dword [ebx]
push str._0.8X_s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
add esi, eax
mov dword [ebp - 0x720], esi
mov ebx, dword [ebp - 0x71c]
mov dword [ebp - 0x72c], ebx
lea eax, [ebp - 0x35a]
cmp esi, eax
jbe 0x412c20
lea eax, [ebp - 0x710]
push eax
push 0x44e4fc
push edi
call fcn.00413130
mov byte [ebp - 0x710], 0
jmp 0x412c07
lea eax, [ebp - 0x710]
push eax
push 0x44e4fc
push edi
call fcn.00413130
add esp, 0xc
jmp 0x412d1b
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.00412d60
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004344b4
mov esp, ebp
pop ebp
ret