Function at 0x406add
Capabilities:
Check mutex on windows
Create process on windows
Delete file
Enumerate files on windows
Print debug messages

Disassembly:
mov eax, 0x44c21a
call fcn.0044b2e0
sub esp, 0x2cc
mov eax, dword [0x464b24]
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x264]
push edi
push eax
call fcn.0041f979
push dword [eax]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0041f35d
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.004021db
lea eax, [ebp - 0x264]
push eax
call fcn.0041f13a
push dword [eax]
mov dword [ebp - 4], 1
call fcn.0041f35d
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.004021db
call fcn.0040632f
lea eax, [ebp - 0x264]
push eax
call fcn.0041ef71
mov dword [esp], 0x464c08
push eax
call fcn.004069ac
pop ecx
pop ecx
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.004021db
push edi
push esi
push edi
mov ecx, 0x464bd0
call fcn.00405f55
push ebx
mov dword [0x464bc8], esi
call fcn.0040a7a3
mov ecx, eax
call fcn.0040a14f
test eax, eax
jne 0x406bb4
or eax, 0xffffffff
jmp 0x406ede
call fcn.0040a7a3
mov ecx, eax
call fcn.00409493
mov esi, 0x464c00
push eax
mov ecx, esi
call fcn.0040314c
push str.Global_
lea ecx, [ebp - 0x26c]
call fcn.00403779
push str..EC042B9A_354D_4CCF_B2CF_53ED0DEBB49F
lea eax, [ebp - 0x264]
push esi
push eax
mov dword [ebp - 4], 2
call fcn.004026cd
add esp, 0xc
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.00406ac5
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.004021db
push dword [ebp - 0x26c]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x264], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406cb3
push str.LiveUpdate_ERROR_ALREADY_EXISTS
lea ecx, [ebp - 0x264]
call fcn.00403779
push dword [ebp - 0x264]
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.0040a7a3
mov ecx, eax
call fcn.00409404
test eax, eax
je 0x406ca0
push dword [0x464c00]
push dword [0x464e3c]
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
cmp esi, edi
je 0x406ca0
push edi
call fcn.0040a7a3
mov ecx, eax
call fcn.004093f6
push eax
push dword [0x464e40]
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.004021db
jmp 0x406ece
call fcn.00405f39
lea ecx, [ebp - 0x2d8]
call fcn.0040afa3
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x268], esp
mov dword [eax], edi
push edi
push SysReAllocStringLen
push dword [0x464c00]
mov dword [ebp - 0x27c], edi
push ecx
mov eax, esp
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x268], esp
mov dword [eax], ecx
push edi
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 5
call fcn.004064e5
cmp eax, edi
mov dword [0x464bcc], eax
jne 0x406d25
or edi, 0xffffffff
jmp 0x406ebf
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x406d47
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
lea eax, [ebp - 0x2a0]
push edi
push eax
call esi
test eax, eax
jne 0x406d2d
push dword [ebp - 0x2d4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0x451e78
mov esi, 0x464c0c
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.004026cd
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004021db
cmp ebx, 0xffffffff
je 0x406e42
push 0xffffffffffffffff
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x274]
call fcn.00406172
lea eax, [ebp - 0x284]
push eax
call fcn.004068df
mov eax, dword [ebp - 0x284]
sub eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0x280]
sbb ecx, dword [ebp - 0x270]
push edi
push 0x15180
push ecx
push eax
call fcn.0044b450
cmp edx, edi
jl 0x406e2c
jg 0x406df6
cmp eax, 0xa
jb 0x406e2c
test byte [ebp - 0x260], 0x10
jne 0x406e2c
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.004026cd
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.004021db
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406da6
call fcn.0040a7a3
mov ecx, eax
call fcn.004093ef
cmp eax, 0xb
je 0x406e75
call fcn.0040a7a3
mov ecx, eax
call fcn.004093ef
cmp eax, 0xc
je 0x406e75
call fcn.0040a7a3
mov ecx, eax
call fcn.004093ef
cmp eax, 0xe
jne 0x406e9c
call fcn.0041494c
cmp dword [eax + 0x2c], edi
jne 0x406e9c
push 1
push edi
push edi
call fcn.0040a7a3
mov ecx, eax
call fcn.0040948b
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call sym.ThunderLiveUD.exe_XLI18N_Uninitialize
mov edi, dword [ebp - 0x298]
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 2
call fcn.0040ad86
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.004021db
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b2c4
leave
ret 0x10