Function at 0x41583e
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x584
lea edx, [ebp - 0x338]
mov eax, 0
mov ecx, 0x4a
mov edi, edx
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x55c]
mov eax, 0
mov ecx, 0x89
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [0x44ecc4]
test eax, eax
je 0x415b23
mov eax, dword [0x44ecc8]
test eax, eax
je 0x415b23
mov eax, dword [0x44eccc]
test eax, eax
je 0x415b23
mov dword [esp + 4], 1
mov dword [esp], str.SeDebugPrivilege
call fcn.00415744
mov eax, dword [0x44ecc4]
mov dword [esp + 4], 0
mov dword [esp], 0xf
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
setne al
test al, al
je 0x415b0f
mov dword [ebp - 0x338], 0x128
mov edx, dword [0x44ecc8]
lea eax, [ebp - 0x338]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call edx
sub esp, 8
test eax, eax
setne al
test al, al
je 0x415aff
mov edx, dword [0x44eccc]
lea eax, [ebp - 0x338]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call edx
sub esp, 8
test eax, eax
setne al
test al, al
je 0x415aff
cmp dword [ebp + 0x18], 0
jne 0x415908
cmp dword [ebp + 0x14], 0
jne 0x415a6a
cmp dword [ebp + 0xc], 0
je 0x415908
mov edx, dword [0x44ecc4]
mov eax, dword [ebp - 0x330]
mov dword [esp + 4], eax
mov dword [esp], 8
call edx
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x55c], 0x224
cmp dword [ebp + 0x1c], 0
je 0x4159fd
mov edx, dword [0x44ecd0]
lea eax, [ebp - 0x55c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edx
sub esp, 8
test eax, eax
setne al
test al, al
je 0x4159ce
mov eax, dword [ebp - 0x330]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x55c]
add eax, 0x120
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s___d_
lea eax, [ebp - 0x210]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
jmp 0x415a2a
mov eax, dword [ebp - 0x330]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x338]
add eax, 0x24
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s___d_
lea eax, [ebp - 0x210]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
jmp 0x415a2a
mov eax, dword [ebp - 0x330]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x338]
add eax, 0x24
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s___d_
lea eax, [ebp - 0x210]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x10], 1
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x210]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040c3f1
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
jmp 0x415908
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0x338]
add eax, 0x24
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x415908
mov eax, dword [ebp - 0x330]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
mov eax, dword [sym.imp.KERNEL32.dll_OpenProcess]
call eax
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TerminateProcess]
call eax
sub esp, 8
test eax, eax
sete al
test al, al
je 0x415af8
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 0
jmp 0x415b28
mov eax, 1
jmp 0x415b28
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], str.SeDebugPrivilege
call fcn.00415744
mov eax, 0
mov edi, dword [ebp - 4]
leave
ret