Function at 0x401780
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4532d8
push 0x4291b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb44
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x466494]
test eax, eax
jne 0x401c77
mov dword [0x466494], 1
mov eax, dword [str.Unknown]
mov dword [ebp - 0x130], eax
mov ecx, dword [0x459258]
mov dword [ebp - 0x12c], ecx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
push 0x104
lea edx, [ebp - 0x234]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
ja 0x401804
mov byte [ebp - 0x234], 0
lea eax, [ebp - 0x234]
push eax
call fcn.004022c0
add esp, 4
mov esi, eax
push esi
lea ecx, [ebp - 0x130]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
push 0x2e
lea edx, [ebp - 0x130]
push edx
call fcn.00429180
add esp, 8
test eax, eax
je 0x40183d
mov byte [eax], 0
push str.errorlog.txt
push esi
call edi
push 0
push 0x80000080
push 4
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x238], ebx
cmp ebx, 0xffffffff
jne 0x40188f
push str.Error_creating_exception_report
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 ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push str._r_n_r_n_r_n_r_n
push ebx
call fcn.00401c90
add esp, 8
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], str.Unknown
push 0x1c
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [esi + 0xb8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x401904
push 0x104
lea eax, [ebp - 0x35c]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x401904
lea edx, [ebp - 0x35c]
push edx
call fcn.004022c0
add esp, 4
jmp 0x401907
mov eax, dword [ebp - 0x28]
mov ecx, dword [esi + 0xb8]
push ecx
mov edx, dword [esi + 0xbc]
push edx
push eax
mov eax, dword [edi]
push eax
call fcn.004020c0
add esp, 4
push eax
lea ecx, [ebp - 0x130]
push ecx
push str._s_caused__s_in_module__s_at__04x:_08x._r_n
push ebx
call fcn.00401c90
mov edx, dword [ebp + 0xc]
push edx
push str.Exception_handler_called_in__s._r_n
push ebx
call fcn.00401c90
push ebx
call fcn.00401fa0
add esp, 0x2c
cmp dword [edi], 0xc0000005
jne 0x401997
cmp dword [edi + 0x10], 2
jb 0x401997
mov eax, str.Read_from
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x40196b
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 - 0x748]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x748]
push eax
push 0x45917c
push ebx
call fcn.00401c90
add esp, 0x1c
push 0x459178
push ebx
call fcn.00401c90
push str.Registers:_r_n
push ebx
call fcn.00401c90
mov ecx, dword [esi + 0xc0]
push ecx
mov edx, dword [esi + 0xb8]
push edx
mov eax, dword [esi + 0xbc]
push eax
mov ecx, dword [esi + 0xb0]
push ecx
push str.EAX_08x_CS_04x_EIP_08x_EFLGS_08x_r_n
push ebx
call fcn.00401c90
mov edx, dword [esi + 0xb4]
push edx
mov eax, dword [esi + 0xc4]
push eax
mov ecx, dword [esi + 0xc8]
push ecx
mov edx, dword [esi + 0xa4]
push edx
push str.EBX_08x_SS_04x_ESP_08x_EBP_08x_r_n
push ebx
call fcn.00401c90
add esp, 0x40
mov eax, dword [esi + 0x90]
push eax
mov ecx, dword [esi + 0xa0]
push ecx
mov edx, dword [esi + 0x98]
push edx
mov eax, dword [esi + 0xac]
push eax
push str.ECX_08x_DS_04x_ESI_08x_FS_04x_r_n
push ebx
call fcn.00401c90
mov ecx, dword [esi + 0x8c]
push ecx
mov edx, dword [esi + 0x9c]
push edx
mov eax, dword [esi + 0x94]
push eax
mov ecx, dword [esi + 0xa8]
push ecx
push str.EDX_08x_ES_04x_EDI_08x_GS_04x_r_n
push ebx
call fcn.00401c90
push str.Bytes_at_CS:EIP:_r_n
push ebx
call fcn.00401c90
add esp, 0x38
mov edx, dword [esi + 0xb8]
mov dword [ebp - 0x258], edx
xor edi, edi
mov dword [ebp - 0x360], edi
cmp edi, 0x10
jge 0x401ace
mov dword [ebp - 4], 0
xor eax, eax
mov ecx, dword [ebp - 0x258]
mov al, byte [edi + ecx]
push eax
push str._02x
push ebx
call fcn.00401c90
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
inc edi
jmp 0x401a68
push str._r_nStack_dump:_r_n
push ebx
call fcn.00401c90
add esp, 8
mov dword [ebp - 4], 1
mov esi, dword [esi + 0xc4]
mov dword [ebp - 0x750], esi
mov eax, dword fs:[4]
mov dword [ebp - 0x754], eax
lea eax, [esi + 0x2000]
cmp dword [ebp - 0x754], eax
jbe 0x401b0f
mov dword [ebp - 0x754], eax
mov dword [ebp - 0xb44], 0
mov dl, byte [0x466490]
mov byte [ebp - 0xb40], dl
mov ecx, 0xf9
xor eax, eax
lea edi, [ebp - 0xb3f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0xb4c], 0x32
lea eax, [ebp - 0x78a]
mov dword [ebp - 0x758], eax
lea edi, [ebp - 0xb40]
mov dword [ebp - 0xb48], edi
lea eax, [esi + 4]
mov dword [ebp - 0xb54], eax
cmp eax, dword [ebp - 0x754]
ja 0x401c2c
mov ecx, dword [ebp - 0xb44]
and ecx, 0x80000007
jns 0x401b81
dec ecx
or ecx, 0xfffffff8
inc ecx
jne 0x401b9b
push esi
push str._08x:
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add edi, eax
mov dword [ebp - 0xb48], edi
mov eax, 0x459094
mov dword [ebp - 0xb50], eax
mov ecx, dword [ebp - 0xb44]
inc ecx
mov dword [ebp - 0xb44], ecx
and ecx, 0x80000007
jns 0x401bc0
dec ecx
or ecx, 0xfffffff8
inc ecx
je 0x401bcd
lea edx, [esi + 8]
cmp edx, dword [ebp - 0x754]
jbe 0x401bd8
mov eax, 0x459178
mov dword [ebp - 0xb50], eax
push eax
mov eax, dword [esi]
push eax
push str._08x_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
add edi, eax
mov dword [ebp - 0xb48], edi
mov esi, dword [ebp - 0xb54]
mov dword [ebp - 0x750], esi
cmp edi, dword [ebp - 0x758]
jbe 0x401b59
lea ecx, [ebp - 0xb40]
push ecx
push 0x45917c
push ebx
call fcn.00401c90
add esp, 0xc
mov byte [ebp - 0xb40], 0
jmp 0x401b4d
lea edx, [ebp - 0xb40]
push edx
push 0x45917c
push ebx
call fcn.00401c90
add esp, 0xc
jmp 0x401c60
mov dword [ebp - 4], 0xffffffff
push ebx
call fcn.00401ce0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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