Function at 0x404478
Capabilities:
Accept command line arguments
Check if file exists
Extract resource via kernel32 functions
Get common file path
Move file
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
push edi
push str.kernel32.dll
xor ebx, ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
cmp edi, ebx
je 0x4044ba
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x4044ba
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x4044ba
mov esi, dword [eax + 0x30]
push 0x7fff
shr esi, 0x10
cmp si, 5
push 0x41ae58
seta al
push ebx
mov byte [0x40a43c], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
push 0x41a448
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.0040691f
mov esi, eax
cmp esi, ebx
je 0x404508
push esi
call fcn.00402946
pop ecx
push esi
mov dword [0x42ae58], eax
call fcn.0040241e
pop ecx
cmp dword [0x40a004], 0x100007f
jne 0x40455d
movzx eax, word [0x40a30e]
push eax
movzx eax, word [0x40a30c]
push eax
movzx eax, word [0x40a30a]
push eax
movzx eax, word [0x40a308]
push eax
lea eax, [esp + 0x40]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call esi
lea eax, [esp + 0x30]
push eax
call esi
lea eax, [esp + 0x14]
push eax
push 8
mov byte [esp + 0x1b], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, str.shit
test eax, eax
je 0x4045c9
push dword [esp + 0x14]
call fcn.00405bca
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4045a6
push 0x16
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
push edi
setne byte [esp + 0x17]
call fcn.0040241e
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], bl
je 0x4045c9
push esi
push ecx
push 1
call fcn.00403ad9
pop ecx
pop ecx
push eax
call fcn.0040582a
pop ecx
pop ecx
mov dword [esp + 0x20], esi
push 1
mov esi, 0x42b070
push esi
mov dword [esp + 0x2c], 0x40548e
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [esp + 0x20]
push eax
mov dword [0x42b084], 0xc
mov dword [0x42b088], esi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x40467e
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00406772
mov byte [esp + 0x18], al
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
xor eax, eax
inc eax
cmp dword [esp + 0x14], eax
jle 0x4046e5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x407c30
push dword [edi + 4]
call esi
test eax, eax
jne 0x404685
push dword [edi + 8]
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
cmp esi, ebx
je 0x40467e
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x407c38
push dword [edi + 4]
call esi
test eax, eax
jne 0x404717
mov dword [esp + 0x1c], ebx
mov esi, dword [edi + 8]
call fcn.0040618c
test eax, eax
jne 0x4046c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4046c8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0xa
jl 0x40469b
push 4
push ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp byte [esp + 0x18], bl
je 0x404717
call fcn.004057dc
test al, al
je 0x404717
jmp 0x40467e
jne 0x404717
cmp byte [esp + 0x18], bl
jne 0x4046f4
call fcn.00405ec2
jmp 0x404717
push str.BCB_ChangeMeToSomeThingBetter1122334
push eax
push eax
push 0x42b084
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, byte [esp + 0x18]
call fcn.00403a76
test al, al
jne 0x40472b
push 0
call fcn.00403382
cmp byte [esp + 0x18], 0
je 0x404742
call fcn.004057dc
test al, al
je 0x404742
push 0
jmp 0x40467f
push dword [esp + 0x18]
call fcn.0040426e
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
jmp 0x40467e