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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x45cef0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, 0x16b4
call fcn.00436270
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x16b0], eax
push ebx
push esi
push edi
mov eax, dword [0x47b5b0]
xor eax, esp
push eax
lea eax, [esp + 0x16f8]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00422c46
push 4
call fcn.00421e15
xor ebx, ebx
cmp eax, ebx
je 0x45a2b3
mov dword [eax], vtable.CCustomOccManager.0
jmp 0x45a2b5
xor eax, eax
push 8
mov dword [edi + 0xac], eax
call fcn.0041463b
add esp, 4
cmp eax, ebx
je 0x45a2d4
mov dword [eax], vtable.CImpIDispatch.0
mov dword [eax + 4], ebx
jmp 0x45a2d6
xor eax, eax
mov dword [edi + 0xb0], eax
mov eax, dword [edi + 0xac]
push eax
call fcn.00424101
add esp, 4
lea ecx, [esp + 0x30]
call fcn.004232ba
mov dword [esp + 0x30], vtable.CCustomCommandLineInfo.0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
mov dword [esp + 0x1704], ebx
call fcn.004227af
push 0x104
lea edx, [esp + 0x14b8]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x14b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x14b4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x46c104
push ebx
push ebx
call esi
mov dword [edi + 0xa4], eax
cmp eax, ebx
je 0x45a381
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45a381
cmp dword [esp + 0x58], ebx
jne 0x45a697
call fcn.00459f80
jmp 0x45a697
push str.DaemonLauncher
push ebx
push ebx
call esi
mov dword [edi + 0xa8], eax
cmp eax, ebx
je 0x45a3a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45a3a9
mov dword [esp + 0x58], 1
push 0x206
lea eax, [esp + 0x12b2]
xor edx, edx
push ebx
push eax
mov word [esp + 0x12b8], dx
call fcn.00434200
add esp, 0xc
push 0x104
lea ecx, [esp + 0x12b0]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x12ac]
push edx
lea ecx, [esp + 0x2c]
call fcn.00401860
mov byte [esp + 0x1700], 1
mov eax, dword [esp + 0x28]
push 0x5c
push eax
call fcn.00432ad9
add esp, 8
cmp eax, ebx
jne 0x45a40e
or eax, 0xffffffff
jmp 0x45a414
sub eax, dword [esp + 0x28]
sar eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x30]
call fcn.00402540
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45a44c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push str.logs_
call esi
push ebx
push str.update_
call esi
lea esi, [esp + 0x7c]
call fcn.00451590
mov esi, 1
mov byte [esp + 0x1700], 2
cmp dword [esp + 0x58], esi
jne 0x45a485
mov dword [esp + 0xd0], ebx
lea eax, [esp + 0x7c]
call fcn.00451b70
lea ecx, [esp + 0x7c]
mov dword [edi + 0x20], ecx
cmp dword [esp + 0x5c], ebx
je 0x45a4a1
push ebx
call fcn.004247db
fld qword [esp + 0xe4]
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
sub esp, 8
fstp qword [esp]
push edx
push eax
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x200]
push edx
call fcn.00455380
mov byte [esp + 0x1700], 3
cmp dword [esp + 0x58], esi
jne 0x45a4e8
mov dword [esp + 0x124c], ebx
cmp dword [esp + 0x5c], ebx
je 0x45a4f5
mov dword [esp + 0x1250], esi
lea eax, [esp + 0x7c]
push eax
push 0x66
lea ecx, [esp + 0x1f4]
call fcn.00425b59
lea ecx, [esp + 0x1ec]
cmp dword [esp + 0x5c], ebx
jne 0x45a519
push 5
jmp 0x45a51a
push ebx
call fcn.004247db
cmp dword [esp + 0x58], esi
jne 0x45a55b
push 9
lea ecx, [esp + 0x80]
call fcn.004247db
push 9
lea ecx, [esp + 0x1f0]
call fcn.004247db
mov ecx, dword [esp + 0x9c]
mov esi, dword [sym.imp.USER32.dll_SetForegroundWindow]
push ecx
call esi
mov edx, dword [esp + 0x20c]
push edx
call esi
mov eax, dword [esp + 0x20c]
push eax
lea ecx, [esp + 0x80]
call fcn.00451680
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x6c]
push ecx
call esi
cmp eax, ebx
je 0x45a5cc
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea esp, [esp]
cmp eax, 0xffffffff
je 0x45a5cc
mov eax, dword [esp + 0x20c]
lea edx, [esp + 0x60]
push edx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x45a5be
lea ecx, [esp + 0x60]
push ecx
call edi
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [esp + 0x6c]
push eax
call esi
cmp eax, ebx
jne 0x45a590
lea ecx, [esp + 0x1ec]
call fcn.00417f07
lea ecx, [esp + 0x7c]
call fcn.00417f07
lea ecx, [esp + 0x1ec]
push ecx
mov byte [esp + 0x1704], 2
call fcn.00452590
mov byte [esp + 0x1700], 1
mov eax, dword [esp + 0x150]
mov dword [esp + 0x7c], vtable.CBackgroundWnd.0
cmp eax, ebx
je 0x45a65b
push eax
mov dword [esp + 0x154], ebx
mov dword [esp + 0x158], ebx
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x160], ebx
mov dword [esp + 0x168], ebx
mov dword [esp + 0x164], ebx
mov dword [esp + 0x170], 0xffffffff
mov byte [esp + 0x16d], bl
mov byte [esp + 0x16c], bl
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x14c]
call fcn.00402960
lea ecx, [esp + 0x7c]
call fcn.00418aa5
mov byte [esp + 0x1700], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45a697
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x1700], 0xffffffff
call fcn.004232fe
xor eax, eax
mov ecx, dword [esp + 0x16f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x16b0]
xor ecx, esp
call fcn.00431fec
mov esp, ebp
pop ebp
ret