Function at 0x41dba0
Capabilities:
Check mutex on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434037
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x440100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [ebp + 8], 1
jle 0x41dee5
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x4378b0
push 0
push 0
call esi
mov edi, eax
mov dword [ebp - 0x2a8], edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41dede
nop dword [eax]
push str.LUNA_UPDATER_BLOCK
push 0
push 0
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41dfbf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
xor ecx, ecx
push 0x5c
mov word [eax], cx
lea eax, [ebp - 0x21c]
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 0x10
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 2
xorps xmm0, xmm0
mov byte [ebp - 4], 1
push 0x437900
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], 0
movups xmmword [ebp - 0x24c], xmm0
mov dword [ebp - 0x238], 0
call fcn.00404fc0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov edx, dword [eax + 4]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41dcd0
sub ecx, esi
mov dword [ebp - 0x224], 0
sar ecx, 1
xorps xmm0, xmm0
push ecx
push edx
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0
movups xmmword [ebp - 0x234], xmm0
call fcn.00404fc0
xorps xmm0, xmm0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
movups xmmword [ebp - 0x284], xmm0
movups xmmword [ebp - 0x274], xmm0
call fcn.0041c9c0
cmp dword [ebp - 0x250], 7
lea ecx, [ebp - 0x284]
push 0xffffffffffffffff
push 0x3e
lea eax, [ebp - 0x264]
mov dword [ebp - 0x2a4], 0
cmova eax, dword [ebp - 0x264]
push ecx
push eax
mov dword [ebp - 0x2a0], 0x44002c
call fcn.00426ee3
mov esi, eax
test esi, esi
jne 0x41dd8d
mov eax, dword [ebp - 0x274]
and eax, 0x400
neg eax
sbb eax, eax
and eax, 0xffffffc8
add eax, 0x3e
mov dword [ebp - 0x268], eax
jmp 0x41ddb4
push esi
mov dword [ebp - 0x268], 0
call fcn.0041e010
add esp, 4
test al, al
jne 0x41ddb4
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a0], 0x44002c
cmp dword [ebp - 0x2a4], 0
je 0x41dde0
cmp dword [ebp - 0x250], 7
lea eax, [ebp - 0x264]
mov dword [ebp - 0x254], 0
cmova eax, dword [ebp - 0x264]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x2a4], 0
mov byte [ebp - 4], 4
jne 0x41de0c
lea eax, [ebp - 0x2a4]
push eax
push 0x12
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.0041cbd0
add esp, 0x10
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 3
call fcn.0041cb40
cmp dword [ebp - 0x2a4], 0
jne 0x41dfdc
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x41de68
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41de5e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dffb
push ecx
push edx
call fcn.0042799b
add esp, 8
mov ecx, dword [ebp - 0x238]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp ecx, 7
jbe 0x41dec5
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41debb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dffb
push ecx
push edx
call fcn.0042799b
add esp, 8
push 0
push str.Success
push str.Update_success
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00427958
mov esp, ebp
pop ebp
ret
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
jmp 0x41dc10
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x2a4]
push eax
push str.copy
call fcn.0041da90
call fcn.00428a50
int3