Function at 0x40bee0
Capabilities:
Accept command line arguments
Check mutex on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57efe1
mov eax, dword fs:[0]
push eax
sub esp, 0x990
mov eax, dword [0x5e68f0]
xor eax, esp
mov dword [esp + 0x988], eax
push ebx
push esi
push edi
mov eax, dword [0x5e68f0]
xor eax, esp
push eax
lea eax, [esp + 0x9a0]
mov dword fs:[0], eax
push 0x5c02f4
push 0
push 0
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x40bf4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40c29f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
mov dword [esp + 0x20], 0
call fcn.0040b7b0
mov esi, eax
lea eax, [esp + 0x20]
push eax
push 0xf01ff
push edi
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40bfaa
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x2c]
push edx
push 0xc
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
jmp 0x40bfb0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [esp + 0x24]
je 0x40c202
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x5c0328
call esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x18]
call fcn.00407d30
mov dword [esp + 0x9a8], 0
mov edx, dword [esp + 0x14]
push edx
call esi
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x58e]
push ecx
mov word [esp + 0x590], ax
call fcn.0050fd50
add esp, 0xc
push 0x104
lea edx, [esp + 0x588]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x584]
push eax
lea ecx, [esp + 0x20]
call fcn.00407d30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9a8], 1
call fcn.0040c790
lea ecx, [esp + 0x14]
push 0x5be98c
push ecx
call fcn.0040c6b0
add esp, 8
test al, al
je 0x40c0f8
lea ecx, [esp + 0x14]
call fcn.0040c790
mov edx, dword [esp + 0x1c]
push 0x5be034
push edx
lea ecx, [esp + 0x1c]
call fcn.0040c2d0
push 0x22
lea ecx, [esp + 0x18]
call fcn.0040c5f0
lea edi, [esp + 0x584]
add edi, 0xfffffffe
jmp 0x40c090
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c090
mov eax, dword [0x5be034]
mov dword [edi], eax
mov eax, dword [esp + 0x14]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c0b0
lea edi, [esp + 0x584]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40c0d0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40c0d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
call edi
lea ecx, [esp + 0x584]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x588]
push eax
mov dword [esp + 0x20], 0
call fcn.0040ba50
test eax, eax
je 0x40c19e
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40c19e
push 0x5c0350
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
mov byte [esp + 0x9a8], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c16a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x9a8], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c29f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c29f
push 0x5c02f4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov byte [esp + 0x9a8], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x9a8], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c202
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], 8
mov dword [esp + 0x34], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.0041b982
push 0
call fcn.0041dadd
add esp, 4
push 0x5c0364
mov ecx, esi
call fcn.0041dfb0
push 0x5c0384
push 0
call fcn.0050fa30
add esp, 8
lea edx, [esp + 0x34]
push edx
call fcn.0040c830
lea eax, [esp + 0x34]
mov dword [esp + 0x9a8], 2
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.0040dc9a
test ebx, ebx
je 0x40c277
push ebx
call edi
mov dword [esp + 0x9a8], 0xffffffff
lea esi, [esp + 0xb0]
mov dword [esp + 0x34], vtable.CSetupDlg.0
call fcn.00402190
lea ecx, [esp + 0x34]
call fcn.0040d544
xor eax, eax
mov ecx, dword [esp + 0x9a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x988]
xor ecx, esp
call fcn.0050c2f2
mov esp, ebp
pop ebp
ret