Function at 0x402b20
Capabilities:
Check mutex on windows
Get common file path

Disassembly:
mov eax, 0x42c4d3
call fcn.0041f1a0
sub esp, 0x4fc
mov eax, dword [0x440200]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, ebp
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 4
call fcn.00401394
pop ecx
push ebx
push esi
push ebx
mov ecx, 0x440638
call fcn.00401b0d
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.ThunderLiveUD_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x218]
push eax
call fcn.0041aa05
pop ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.XLBugHandler.dll__XL_SetBugReportRootDir_4]
lea eax, [ebp - 0x314]
push eax
call fcn.0040f8d4
pop ecx
mov eax, dword [ebp - 0x310]
push 8
pop edi
cmp dword [ebp - 0x2fc], edi
mov dword [ebp - 4], ebx
jae 0x402bcd
lea eax, [ebp - 0x310]
push 0x2e
push eax
lea eax, [ebp - 0x330]
push eax
call fcn.00410386
add esp, 0xc
cmp dword [ebp - 0x318], edi
mov eax, dword [ebp - 0x32c]
mov byte [ebp - 4], 1
jae 0x402bf7
lea eax, [ebp - 0x32c]
push eax
push 0x431ba0
mov eax, 0x431b20
push eax
push eax
push 0x431b94
call dword [sym.imp.XLBugHandler.dll__XL_InitBugHandler_20]
push 1
call dword [sym.imp.XLBugHandler.dll__XL_SetReportShowMode_4]
push 1
call dword [sym.imp.XLBugHandler.dll__XL_SetAlwaysSendReport_4]
lea eax, [ebp - 0x4ec]
push eax
call fcn.0040f955
mov dword [esp], str.xl_data.dll
push eax
lea eax, [ebp - 0x34c]
push eax
mov byte [ebp - 4], 2
call fcn.00401943
add esp, 0xc
lea ecx, [ebp - 0x4ec]
mov byte [ebp - 4], 4
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_]
cmp dword [ebp - 0x334], edi
mov eax, dword [ebp - 0x348]
jae 0x402c6a
lea eax, [ebp - 0x348]
push eax
call fcn.00401c0d
cmp al, bl
pop ecx
je 0x403396
mov esi, dword [sym.imp.MSVCR71.dll___p___argc]
call esi
cmp dword [eax], 3
jne 0x403151
mov esi, dword [sym.imp.MSVCR71.dll___p___wargv]
call esi
mov eax, dword [eax]
push dword [eax + 4]
lea ecx, [ebp - 0x2a4]
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__]
mov byte [ebp - 4], 5
call esi
mov eax, dword [eax]
push dword [eax + 8]
lea ecx, [ebp - 0x2f8]
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 eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x2c0]
push eax
mov byte [ebp - 4], 6
call fcn.00410229
pop ecx
pop ecx
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 7
call fcn.00402730
push 2
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 8
call fcn.00411e1e
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x420]
call fcn.00411ebc
cmp eax, ebx
jne 0x403112
push dword [0x440194]
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x420]
call fcn.00412451
lea ecx, [ebp - 0x498]
push ecx
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00411a2f
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 0xd
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x438]
cmp eax, ebx
mov byte [ebp - 4], 0xc
je 0x402d72
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [0x44019c]
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x420]
call fcn.00412451
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x434]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.004124be
lea ecx, [ebp - 0x4b4]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.00411a2f
lea eax, [ebp - 0x4b4]
push eax
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0x10
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x4b4]
mov byte [ebp - 4], 0x14
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x434]
cmp eax, ebx
mov byte [ebp - 4], 0x13
je 0x402df0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x430]
cmp eax, ebx
mov byte [ebp - 4], 0x12
je 0x402e04
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00417129
add esp, 0x10
cmp dword [ebp - 0x21c], 0x10
mov eax, dword [ebp - 0x230]
mov byte [ebp - 4], 0x15
jae 0x402e41
lea eax, [ebp - 0x230]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
cmp edi, ebx
je 0x4030e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4030db
call fcn.00402884
push dword [0x4401ac]
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x420]
call fcn.00412451
lea ecx, [ebp - 0x460]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.00411ac7
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x17
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__]
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 0x1a
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 eax, dword [ebp - 0x42c]
cmp eax, ebx
mov byte [ebp - 4], 0x19
je 0x402ed0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x23c], ebx
jne 0x402ffb
push dword [0x4401a0]
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x420]
call fcn.00412451
lea ecx, [ebp - 0x47c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x1b
call fcn.00411ac7
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 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__]
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 0x1f
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 eax, dword [ebp - 0x428]
cmp eax, ebx
mov byte [ebp - 4], 0x1e
je 0x402f41
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x2c4], 8
mov eax, dword [ebp - 0x2d8]
jae 0x402f56
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.0040f615
push 0x431b4c
push eax
lea eax, [ebp - 0x4d0]
push eax
mov byte [ebp - 4], 0x20
call fcn.00401943
add esp, 0x14
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x21
call dword [0x4313d0]
lea ecx, [ebp - 0x4d0]
mov byte [ebp - 4], 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_]
lea ecx, [ebp - 0x508]
mov byte [ebp - 4], 0x1e
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 dword [0x4401ac]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x420]
call fcn.00412451
lea ecx, [ebp - 0x2dc]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x22
call fcn.004119bc
mov eax, dword [ebp - 0x424]
cmp eax, ebx
mov byte [ebp - 4], 0x1e
je 0x402feb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0x19
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 dword [0x4401b0]
mov esi, dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
lea eax, [ebp - 0x2a4]
push eax
call esi
test al, al
pop ecx
pop ecx
je 0x403048
lea ecx, [ebp - 0x41c]
call fcn.0040b1cb
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0x23
call fcn.0040b73f
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0x19
call fcn.0040b265
jmp 0x4030c6
push dword [0x4401b8]
lea eax, [ebp - 0x2a4]
push eax
call esi
test al, al
pop ecx
pop ecx
je 0x403080
lea ecx, [ebp - 0x41c]
call fcn.0040b1cb
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0x24
call fcn.0040b89a
jmp 0x403037
push dword [0x4401b4]
lea eax, [ebp - 0x2a4]
push eax
call esi
test al, al
pop ecx
pop ecx
je 0x4030c6
lea ecx, [ebp - 0x444]
call fcn.00403d5f
push ebx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 0x25
call fcn.00407807
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 0x19
call fcn.00403d90
call fcn.004028f9
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x15
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 edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x12
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0xc
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x420]
cmp eax, ebx
mov byte [ebp - 4], 7
je 0x403126
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 5
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_]
lea ecx, [ebp - 0x2a4]
jmp 0x403387
call esi
cmp dword [eax], 4
jne 0x403391
mov esi, dword [sym.imp.MSVCR71.dll___p___wargv]
call esi
mov eax, dword [eax]
push dword [eax + 4]
lea ecx, [ebp - 0x288]
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__]
mov byte [ebp - 4], 0x26
call esi
mov eax, dword [eax]
push dword [eax + 8]
lea ecx, [ebp - 0x250]
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__]
mov byte [ebp - 4], 0x27
call esi
mov eax, dword [eax]
push dword [eax + 0xc]
lea ecx, [ebp - 0x26c]
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__]
push dword [0x4401bc]
lea eax, [ebp - 0x288]
push eax
mov byte [ebp - 4], 0x28
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
test al, al
pop ecx
pop ecx
je 0x403361
cmp dword [ebp - 0x23c], ebx
je 0x403361
cmp dword [ebp - 0x258], ebx
je 0x403361
lea ecx, [ebp - 0x420]
call fcn.00402730
push dword [0x440194]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 0x29
call fcn.00412451
lea ecx, [ebp - 0x250]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x2a
call fcn.004119bc
mov eax, dword [ebp - 0x424]
cmp eax, ebx
mov byte [ebp - 4], 0x29
je 0x403229
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [0x440194]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x420]
call fcn.00412451
lea ecx, [ebp - 0x2f8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x2b
call fcn.00411a2f
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0x2c
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 0x2f
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x424]
cmp eax, ebx
mov byte [ebp - 4], 0x2e
je 0x40328e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [0x44019c]
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x420]
call fcn.00412451
lea ecx, [ebp - 0x2c0]
push ecx
lea ecx, [ebp - 0x428]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x30
call fcn.004124be
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x31
call fcn.004119bc
mov eax, dword [ebp - 0x428]
cmp eax, ebx
mov byte [ebp - 4], 0x30
je 0x4032e5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x42c]
cmp eax, ebx
mov byte [ebp - 4], 0x2e
je 0x4032f9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004162c8
pop ecx
pop ecx
cmp dword [ebp - 0x21c], edi
mov eax, dword [ebp - 0x230]
mov byte [ebp - 4], 0x32
jae 0x403326
lea eax, [ebp - 0x230]
push eax
call fcn.0040f101
pop ecx
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x2e
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_]
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0x29
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x420]
cmp eax, ebx
mov byte [ebp - 4], 0x28
je 0x403361
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x27
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_]
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x26
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_]
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 4
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_]
call fcn.00401c40
mov ecx, 0x440638
call fcn.00402af9
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 1
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_]
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], bl
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_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x314]
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 [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041ef93
leave
ret 0x10