Function at 0x40b3e0
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470a4d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4d100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0041e170
sub esp, 0x18
mov edi, eax
mov ecx, esp
mov esi, edx
push 0xe
push str.launcherUpdate
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00411c40
push esi
push edi
xor ecx, ecx
call fcn.00402f90
mov eax, dword [0x4d3310]
add esp, 0x20
add eax, 0x58
mov byte [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov edi, dword [ebp - 0x14]
test eax, eax
jne 0x40b473
mov eax, 1
lock xadd dword [edi], eax
test eax, eax
jne 0x40b473
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 4], eax
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push str.install
mov dword [ebp - 4], 0
call fcn.004282c0
push 0
push str.install.text
call fcn.004282c0
push 0
push str.install.text.shield
call fcn.004282c0
push 1
push str.progress.text
call fcn.004282c0
push 1
push str.progress.total
call fcn.004282c0
push 1
push str.progress.currentIn
call fcn.004282c0
push 1
push str.progress.currentOut
call fcn.004282c0
mov ecx, dword [0x4d3310]
lea eax, [ebp - 0x20]
push str.progress.text
push eax
call fcn.00427100
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [0x4d3320], esi
test ecx, ecx
je 0x40b55f
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.004134b0
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [ebp - 0x20]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b53a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b642
push edx
push ecx
call fcn.00451449
mov esi, dword [0x4d3320]
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [0x4d2ea0]
test ecx, ecx
je 0x40b59a
mov ebx, dword [ecx + 0x34]
mov eax, 0x2aaaaaab
mov ecx, dword [ecx + 0x38]
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x23
jb 0x40b59a
cmp dword [ebx + 0x344], 8
lea eax, [ebx + 0x330]
jb 0x40b59f
mov eax, dword [eax]
jmp 0x40b59f
mov eax, 0x47c32c
mov dword [esi + 0x78], eax
mov byte [esi + 0x37], 1
push dword [edi + 4]
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4d3310]
push 0
push 0
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_InvalidateRect]
call fcn.0040ad00
test al, al
jne 0x40b5f4
mov eax, dword [0x4d3310]
push 0
push 0
push 0x10
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xc
call fcn.004511c8
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax + 4], str.InstallThread
push 0
push 0
push eax
push 0x4191d0
push 0
push 0
mov dword [eax], vtable.Util::SimpleThreadAdapter.0
mov dword [eax + 8], 0x40aab0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00460976
int3