Function at 0x413800
Capabilities:
Acquire debug privileges
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa98
mov eax, dword [0x5ec938]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x120]
mov dword [ebp - 0xa7c], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xa74], ecx
mov dword [ebp - 0xa98], eax
test eax, eax
je 0x413838
mov dword [eax], 0
test ecx, ecx
je 0x413c36
cmp word [ecx], 0
je 0x413c36
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x559118
push esi
call edi
push 0x559108
push esi
mov dword [ebp - 0xa8c], eax
call edi
push 0x5590f8
push esi
mov ebx, eax
call edi
push str.Module32FirstW
push esi
mov dword [ebp - 0xa84], eax
call edi
push str.Module32NextW
push esi
mov dword [ebp - 0xa88], eax
call edi
push str.QueryFullProcessImageNameW
push esi
mov dword [ebp - 0xa90], eax
call edi
xor esi, esi
mov dword [ebp - 0xa94], eax
cmp dword [ebp - 0xa84], esi
je 0x413984
cmp ebx, esi
je 0x413984
cmp dword [ebp - 0xa88], esi
je 0x413984
cmp dword [ebp - 0xa90], esi
je 0x413984
mov edi, dword [ebp - 0xa8c]
cmp edi, esi
je 0x413984
push 0x22c
lea eax, [ebp - 0xa68]
push esi
push eax
mov dword [ebp - 0xa78], esi
call fcn.0052c850
mov dword [ebp - 0xa80], esi
mov esi, 2
add esp, 0xc
mov dword [ebp - 0xa68], 0x22c
cmp dword [ebp + 0x1c], esi
jne 0x41394d
mov eax, dword [ebp + 0x10]
cmp eax, 5
ja 0x413931
jne 0x41394d
cmp dword [ebp + 0x14], 1
jb 0x41394d
mov ecx, dword [ebp - 0xa7c]
push 1
push str.SeDebugPrivilege
mov dword [ebp - 0xa80], 1
call fcn.00413260
push 0
push esi
mov dword [ebp - 0xa70], 0
call edi
mov edi, eax
mov dword [ebp - 0xa6c], edi
cmp edi, 0xffffffff
jne 0x413999
cmp dword [ebp - 0xa80], 0
je 0x413984
mov ecx, dword [ebp - 0xa7c]
push 0
push str.SeDebugPrivilege
call fcn.00413260
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 0x11c
cmp dword [ebp + 0x1c], esi
jne 0x413bd6
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.0052c850
mov edi, dword [ebp - 0xa74]
mov ecx, dword [ebp - 0xa7c]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.00413160
mov edx, dword [ebp - 0xa6c]
lea ecx, [ebp - 0xa68]
push ecx
push edx
call ebx
test eax, eax
je 0x413b58
jmp 0x413a00
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0xa44]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x413b3c
mov ebx, dword [ebp - 0xa94]
test ebx, ebx
je 0x413aa5
mov edx, dword [ebp - 0xa60]
push edx
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x413b3c
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0052c850
add esp, 0xc
lea edx, [ebp - 0xa74]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0
push esi
mov dword [ebp - 0xa74], 0x208
call ebx
test eax, eax
je 0x413a99
push edi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x413bb7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413b3c
push 0x424
lea edx, [ebp - 0x838]
push 0
push edx
call fcn.0052c850
mov eax, dword [ebp - 0xa60]
add esp, 0xc
push eax
push 8
mov dword [ebp - 0x83c], 0x428
call dword [ebp - 0xa8c]
mov esi, eax
cmp esi, 0xffffffff
je 0x413b3c
lea ecx, [ebp - 0x83c]
push ecx
push esi
call dword [ebp - 0xa88]
test eax, eax
je 0x413b2c
lea ecx, [ecx]
push edi
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x413b16
lea eax, [ebp - 0x83c]
push eax
push esi
call dword [ebp - 0xa90]
test eax, eax
jne 0x413af0
jmp 0x413b2c
mov ecx, dword [ebp - 0xa60]
mov dword [ebp - 0xa70], 1
mov dword [ebp - 0xa78], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xa70], 0
jne 0x413b58
mov eax, dword [ebp - 0xa6c]
lea edx, [ebp - 0xa68]
push edx
push eax
call dword [ebp - 0xa84]
test eax, eax
jne 0x413a00
mov edi, dword [ebp - 0xa6c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xa80], 0
je 0x413b80
mov ecx, dword [ebp - 0xa7c]
push 0
push str.SeDebugPrivilege
call fcn.00413260
cmp dword [ebp - 0xa70], 0
je 0x413984
mov eax, dword [ebp - 0xa98]
test eax, eax
je 0x413b9f
mov ecx, dword [ebp - 0xa78]
mov dword [eax], ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 0x11c
mov ecx, dword [ebp - 0xa60]
push esi
mov dword [ebp - 0xa70], 1
mov dword [ebp - 0xa78], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413b58
lea edx, [ebp - 0xa68]
push edx
push edi
call ebx
test eax, eax
je 0x413b5e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, edi
mov eax, dword [ebp - 0xa74]
push eax
lea ecx, [ebp - 0xa44]
push ecx
call esi
test eax, eax
je 0x413c1b
lea edx, [ebp - 0xa68]
push edx
push edi
call dword [ebp - 0xa84]
test eax, eax
jne 0x413bf0
jmp 0x413b5e
mov eax, dword [ebp - 0xa60]
mov dword [ebp - 0xa70], 1
mov dword [ebp - 0xa78], eax
jmp 0x413b5e
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 0x11c