Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x41e248
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x427ce0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x18], ebp
call fcn.004025bc
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x401047
push 0x80004005
call fcn.00401470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x60], ebp
mov ecx, dword [edi + 4]
push ecx
lea edx, [esp + 0x18]
push str.BatFile:_s_n
push edx
call fcn.00401430
mov ebx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
push ebx
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
test eax, eax
jne 0x4010ed
push 0x422838
call fcn.0040dd4c
add esp, 4
mov dword [esp + 0x18], 1
lea eax, [ebx - 0x10]
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4010d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
push 0x3c
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.0040eb90
mov ecx, dword [edi + 4]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x2c], str.open
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40118b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
lea eax, [esp + 0x18]
push str.uacruen.exe_run_AutoUpdate.bat_error:_d_n
push eax
call fcn.00401430
mov ebx, dword [esp + 0x20]
add esp, 0xc
push ebx
call esi
lea eax, [ebx - 0x10]
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401175
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
lea ecx, [esp + 0x14]
push str.uacrun.exe_run_AutoUpdate.bat_succeeded_n
push ecx
call fcn.00401430
mov ebx, dword [esp + 0x1c]
add esp, 8
push ebx
call esi
cmp dword [esp + 0x54], ebp
je 0x4010b1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x14], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor esi, esi
push 0x64
call edi
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x14]
push edx
push eax
call ebp
test eax, eax
je 0x4011df
mov eax, dword [esp + 0x14]
cmp eax, 0x103
jne 0x4011ea
inc esi
cmp esi, 0x32
jl 0x4011c0
jmp 0x4010b1
test eax, eax
je 0x4010b1
mov esi, eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401218
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret