Function at 0x401641
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x402473
call fcn.004021b0
sub esp, 0xc54
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
push str.dbghelp.dll
lea ebx, [esi + 4]
mov dword [ebp - 0x24], esi
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0xc]
push edi
mov dword [ebp - 4], edi
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
and byte [ebp - 0x438], 0
mov dword [esi + 0x1c], edi
mov ecx, 0x104
xor eax, eax
lea edi, [ebp - 0x437]
push 0x410
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x438]
push eax
push 0
mov byte [ebp - 4], 1
call edi
lea eax, [ebp - 0x438]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x438]
push eax
lea ecx, [esi + 0xc]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
push 0x4014ca
call fcn.00401d8e
lea ecx, [ebp - 0x438]
mov dword [esp], 0x410
push ecx
push eax
call edi
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
and byte [ebp - 0xc60], 0
mov ecx, 0x104
xor eax, eax
lea edi, [ebp - 0xc5f]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0xc60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xc60]
push str._.___NT_SYMBOL_PATH____NT_ALTERNATE_SYMBOL_PATH__
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xc60]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, ebx
call fcn.00401835
test eax, eax
mov dword [esi], eax
je 0x401824
and byte [ebp - 0x84c], 0
mov ecx, 0x104
xor eax, eax
lea edi, [ebp - 0x84b]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x84c]
push eax
call ebx
mov edi, str.crash.log
lea eax, [ebp - 0x84c]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
jne 0x4017b0
push str.get_log_file_name_failed._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x84c]
push edi
push eax
call ebx
lea eax, [ebp - 0x84c]
push 0x4042b0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [esi + 0x1c], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4017dd
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push str.Crash:__s_n
push esi
call fcn.004015ec
movzx eax, word [ebp - 0x12]
add esp, 0xc
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
push str.Time_:__04d__02d__02d__02d:_02d:_02d._03d_n
push esi
call fcn.004015ec
add esp, 0x24
mov ecx, esi
call fcn.00401960
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret