Function at 0x403e70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d758
push 0x439988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbac
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov al, byte [0x457240]
test al, al
jne 0x403eb5
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 [0x457240], 0
mov byte [ebp - 0x434], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x433]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x434]
rep stosd dword es:[edi], eax
push 0x206
lea eax, [ebp - 0x434]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
ja 0x403f12
push str.Unknown
lea ecx, [ebp - 0x434]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
jmp 0x403f18
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x434]
push edx
call fcn.00404c40
add esp, 4
mov esi, eax
mov dword [ebp - 0x66c], esi
push esi
lea eax, [ebp - 0x228]
push eax
call edi
push 0x2e
lea ecx, [ebp - 0x228]
push ecx
call fcn.00404210
add esp, 8
test eax, eax
je 0x403f51
mov byte [eax], 0
push str.ERRORLOG.TXT
push esi
call edi
push 0
push 0x80000080
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
jne 0x403fa0
push str.Error_creating_exception_report_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
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 ecx, dword [eax]
mov dword [ebp - 0x440], ecx
mov ebx, dword [eax + 4]
mov dword [ebp - 0x43c], ebx
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x648]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x438], str.Unknown
push 0x1c
lea edx, [ebp - 0x664]
push edx
mov eax, dword [ebx + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404026
push 0x206
lea ecx, [ebp - 0x648]
push ecx
mov edx, dword [ebp - 0x660]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x404026
lea eax, [ebp - 0x648]
push eax
call fcn.00404c40
add esp, 4
mov dword [ebp - 0x438], eax
mov edi, dword [ebp - 0x440]
mov eax, dword [edi]
mov ecx, dword [ebx + 0xb8]
push ecx
mov edx, dword [ebx + 0xbc]
push edx
mov ecx, dword [ebp - 0x438]
push ecx
push eax
push eax
call fcn.00404a50
add esp, 4
push eax
lea edx, [ebp - 0x228]
push edx
push str._s_caused__s__0x_08x___r_nin_module__s_at__04x:_08x._r_n_r_n
push esi
call fcn.00404290
add esp, 0x20
mov eax, dword [ebp + 0xc]
push eax
push str.Exception_handler_called_in__s._r_n
push esi
call fcn.00404290
push esi
call fcn.00404840
add esp, 0x10
cmp dword [edi], 0xc0000005
jne 0x4040c9
cmp dword [edi + 0x10], 2
jb 0x4040c9
mov eax, str.Read_from
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x40409a
mov eax, str.Write_to
mov ecx, dword [edi + 0x18]
push ecx
push eax
push str._s_location__08x_caused_an_access_violation._r_n
lea edx, [ebp - 0xa60]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xa60]
push eax
push 0x457290
push esi
call fcn.00404290
add esp, 0xc
push ebx
push esi
call fcn.00404e10
add esp, 8
push str._r_nBytes_at_CS:EIP:_r_n
push esi
call fcn.00404290
add esp, 8
mov ecx, dword [ebx + 0xb8]
mov dword [ebp - 0x668], ecx
xor edi, edi
mov dword [ebp - 0x670], edi
cmp edi, 0x10
jge 0x404155
mov dword [ebp - 4], 0
xor edx, edx
mov eax, dword [ebp - 0x668]
mov dl, byte [edi + eax]
push edx
push str._02x
push esi
call fcn.00404290
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
inc edi
jmp 0x4040ef
mov ecx, dword [ebx + 0xc4]
push ecx
push esi
call fcn.00404c60
push esi
call fcn.004043d0
add esp, 0xc
push str.ERRORLOG.TXT
push str._r_n__end_of__s___r_n
push esi
call fcn.00404290
push esi
call fcn.00404250
add esp, 0x10
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push str.CRASH.DMP
mov edx, dword [ebp - 0x66c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x80000080
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4041f6
mov ecx, dword [ebp + 8]
push ecx
push esi
call fcn.004042f0
lea edi, [ebp - 0x434]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea edx, [ebp - 0x434]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0043a869
add esp, 0x14
push esi
call ebx
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret