Function at 0x4061d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40eff4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
mov eax, dword [0x418110]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push str.bug_reporter::bug_reporter
mov dword [esp + 0x268], eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x406269
push str.bug_report_constructor
push esi
push str.bug_reporter::bug_reporter
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00402bb0
push 1
mov edi, eax
push ebx
mov dword [0x418140], ebx
mov eax, dword [edi + 0x240]
push ebx
push eax
push 1
mov ecx, edi
mov dword [edi + 0x248], ebx
call fcn.00405bc0
add edi, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov word [esp + 0x58], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x5a]
rep stosd dword es:[edi], eax
push 0x104
lea ecx, [esp + 0x5c]
push ecx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...XLBugHandler.dll
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x274], ebx
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push str.bug_reporter::bug_reporter
mov dword [esp + 0x18], edi
call fcn.00401ef0
add esp, 4
cmp edi, ebx
je 0x406521
test eax, eax
jne 0x40636c
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str.LoadLibrary_succ__XLBugHandler_path:
push esi
push str.bug_reporter::bug_reporter
mov byte [esp + 0x280], 1
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00401290
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x274], bl
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
mov ecx, edi
call fcn.00401290
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 1
push ebx
mov dword [0x418140], ebx
mov edx, dword [edi + 0x240]
push ebx
push edx
push 1
mov ecx, edi
mov dword [edi + 0x248], ebx
call fcn.00405bc0
add edi, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x14]
push str._XL_SetBugReportRootDir_4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esi], eax
jne 0x4063c0
push str.bug_reporter::bug_reporter
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x4063c0
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_XL_SetBugReportRootDir_failed__errno:
push esi
push str.bug_reporter::bug_reporter
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00401290
mov ecx, eax
call fcn.00401200
mov ecx, eax
call fcn.004060e0
push str._XL_InitBugHandler_20
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x406415
push str.bug_reporter::bug_reporter
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x406415
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_XL_InitBugHandler_failed__errno:
push esi
push str.bug_reporter::bug_reporter
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00401290
mov ecx, eax
call fcn.00401200
mov ecx, eax
call fcn.004060e0
push str._XL_SetPeerID_4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x40646a
push str.bug_reporter::bug_reporter
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x40646a
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_XL_SetPeerID_failed__errno:
push esi
push str.bug_reporter::bug_reporter
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00401290
mov ecx, eax
call fcn.00401200
mov ecx, eax
call fcn.004060e0
push str._XL_SetReportShowMode_4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x4064bf
push str.bug_reporter::bug_reporter
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x4064bf
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_XL_SetReportShowMode_failed__errno:
push esi
push str.bug_reporter::bug_reporter
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00401290
mov ecx, eax
call fcn.00401200
mov ecx, eax
call fcn.004060e0
push str._XL_SetAlwaysSendReport_4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x4065c5
push str.bug_reporter::bug_reporter
call fcn.00401ef0
add esp, 4
test eax, eax
jne 0x4065c5
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_XL_SetAlwaysSendReport_failed__errno:
push esi
push str.bug_reporter::bug_reporter
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00401290
mov ecx, eax
call fcn.00401200
mov ecx, eax
call fcn.004060e0
jmp 0x4065c5
test eax, eax
jne 0x4065c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__errno:
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str.LoadLibrary_failed__XLBugHandler_path:
push esi
push str.bug_reporter::bug_reporter
mov byte [esp + 0x288], 2
call fcn.004055f0
add esp, 8
mov ecx, eax
call fcn.00401290
lea ecx, [esp + 0x20]
mov edi, eax
mov byte [esp + 0x27c], bl
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
mov ecx, edi
call fcn.00401290
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, edi
call fcn.00401290
mov ecx, eax
call fcn.00401200
push 1
mov edi, eax
push ebx
mov dword [0x418140], ebx
mov ecx, dword [edi + 0x240]
push ebx
push ecx
push 4
mov ecx, edi
mov dword [edi + 0x248], ebx
call fcn.00405bc0
add edi, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x274], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x264]
mov eax, esi
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret