Function at 0x410d84
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x428c64
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x42f020]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push esi
push edi
mov eax, dword [0x42f020]
xor eax, esp
push eax
lea eax, [esp + 0x4b0]
mov dword fs:[0], eax
xor esi, esi
mov ebx, ecx
mov edi, 0x405ca0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x4b8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x10]
push ecx
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41101f
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push 4
lea ecx, [esp + 0x38]
push ecx
push 0x14
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x410e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebx]
mov edi, eax
push 0x404638
call fcn.004109d1
push eax
mov ecx, ebx
call dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [esp + 0x2c], 4
je 0x410e72
mov eax, dword [ebx]
push 0x404688
push 0x80070005
mov ecx, ebx
call dword [eax + 4]
push 5
jmp 0x410e50
cmp dword [esp + 0x30], 0
je 0x410fee
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
push dword [ebx + 4]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x4046e0
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 4
push dword [esp + 0x3c]
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
jne 0x410ed0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebx]
mov edi, eax
push 0x404728
jmp 0x410e44
mov dword [esp + 0x34], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov byte [esp + 0x4b8], 1
mov eax, dword [esp + 0x14]
push 0x402
mov dword [esp + 0x3c], eax
lea eax, [esp + 0xa0]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x201
push edi
lea eax, [esp + 0xa0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x410fda
cmp eax, edi
je 0x410fda
xor eax, eax
mov word [esp + 0x49c], ax
lea edi, [esp + 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
push esi
push eax
mov dword [esp + 0x60], 0x44
call sub.msvcrt.dll_memset
add esp, 0xc
lea esi, [esp + 0x34]
call fcn.00410b91
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0xa0]
push eax
mov eax, esi
push eax
lea ecx, [esp + 0x60]
lea ebx, [esp + 0x50]
call fcn.00410c01
test al, al
jne 0x410f9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x28]
mov esi, dword [ebx]
mov edi, eax
push 0x4047d0
jmp 0x410e44
push 0xffffffffffffffff
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x48]
mov dword [esp + 0x18], 0x103
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x48]
call esi
push dword [esp + 0x10]
jmp 0x410e50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebx]
mov edi, eax
push 0x404778
jmp 0x410e44
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
call fcn.00410d3c
mov ecx, dword [esp + 0x4b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x498]
xor ecx, esp
call fcn.004230fd
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebx]
mov edi, eax
push 0x4045fc
jmp 0x410e44