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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c65b
mov eax, dword fs:[0]
push eax
sub esp, 0xa9c
mov eax, dword [0x60c9c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa84], ecx
mov eax, dword [ebp + 0x120]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xa78], ecx
mov dword [ebp - 0xaa0], eax
test eax, eax
je 0x4203e3
mov dword [eax], 0
test ecx, ecx
je 0x42052c
cmp word [ecx], 0
je 0x42052c
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x5605a8
push esi
call edi
push 0x560598
push esi
mov dword [ebp - 0xa9c], eax
call edi
push 0x560588
push esi
mov ebx, eax
call edi
push str.Module32FirstW
push esi
mov dword [ebp - 0xa8c], eax
call edi
push str.Module32NextW
push esi
mov dword [ebp - 0xa94], eax
call edi
push str.QueryFullProcessImageNameW
push esi
mov dword [ebp - 0xa98], eax
call edi
xor esi, esi
mov dword [ebp - 0xaa4], eax
cmp dword [ebp - 0xa8c], esi
je 0x42052c
cmp ebx, esi
je 0x42052c
cmp dword [ebp - 0xa94], esi
je 0x42052c
cmp dword [ebp - 0xa98], esi
je 0x42052c
mov edi, dword [ebp - 0xa9c]
cmp edi, esi
je 0x42052c
push 0x22c
lea eax, [ebp - 0xa74]
push esi
push eax
mov dword [ebp - 0xa80], esi
call fcn.00531fb0
mov dword [ebp - 0xa90], esi
mov esi, 2
add esp, 0xc
mov dword [ebp - 0xa74], 0x22c
cmp dword [ebp + 0x1c], esi
jne 0x4204f5
mov eax, dword [ebp + 0x10]
cmp eax, 5
ja 0x4204d9
jne 0x4204f5
cmp dword [ebp + 0x14], 1
jb 0x4204f5
mov ecx, dword [ebp - 0xa84]
push 1
push str.SeDebugPrivilege
mov dword [ebp - 0xa90], 1
call fcn.00415b80
push 0
push esi
mov dword [ebp - 0xa7c], 0
call edi
mov edi, eax
mov dword [ebp - 0xa88], edi
cmp edi, 0xffffffff
jne 0x42054c
cmp dword [ebp - 0xa90], 0
je 0x42052c
mov ecx, dword [ebp - 0xa84]
push 0
push str.SeDebugPrivilege
call fcn.00415b80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00531f97
mov esp, ebp
pop ebp
ret 0x11c
cmp dword [ebp + 0x1c], esi
jne 0x4207b8
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov word [ebp - 0x420], cx
call fcn.00531fb0
mov edi, dword [ebp - 0xa78]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00532f33
mov edx, dword [ebp - 0xa88]
add esp, 0xc
lea ecx, [ebp - 0xa74]
push ecx
push edx
call ebx
test eax, eax
je 0x42080e
lea ecx, [ecx]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xa50]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x420755
mov ebx, dword [ebp - 0xaa4]
test ebx, ebx
je 0x420655
mov edx, dword [ebp - 0xa6c]
push edx
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x420755
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00531fb0
add esp, 0xc
lea edx, [ebp - 0xaa8]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push esi
mov dword [ebp - 0xaa8], 0x208
call ebx
test eax, eax
je 0x420649
push edi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x420776
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x420755
push 0x424
lea edx, [ebp - 0x844]
push 0
push edx
call fcn.00531fb0
mov eax, dword [ebp - 0xa6c]
add esp, 0xc
push eax
push 8
mov dword [ebp - 0x848], 0x428
call dword [ebp - 0xa9c]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4206f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12b
jne 0x420755
lea ecx, [ebp - 0xa78]
call fcn.00403010
mov edx, dword [ebp - 0xa6c]
lea ecx, [ebp - 0xa78]
push ecx
mov ecx, dword [ebp - 0xa84]
push edx
mov dword [ebp - 4], 0
call fcn.0041a4b0
test eax, eax
je 0x4206df
push edi
lea ecx, [ebp - 0xa78]
call fcn.0040b990
test eax, eax
je 0x420795
lea ecx, [ebp - 0xa78]
mov dword [ebp - 4], 0xffffffff
call fcn.00402e70
jmp 0x420755
lea eax, [ebp - 0x848]
push eax
push esi
call dword [ebp - 0xa94]
test eax, eax
je 0x420741
push edi
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x42072b
lea edx, [ebp - 0x848]
push edx
push esi
call dword [ebp - 0xa98]
test eax, eax
jne 0x420705
jmp 0x420741
mov eax, dword [ebp - 0xa6c]
mov dword [ebp - 0xa7c], 1
mov dword [ebp - 0xa80], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xa7c], 0
jne 0x42080e
mov edx, dword [ebp - 0xa88]
lea ecx, [ebp - 0xa74]
push ecx
push edx
call dword [ebp - 0xa8c]
test eax, eax
jne 0x4205b0
jmp 0x42080e
mov eax, dword [ebp - 0xa6c]
push esi
mov dword [ebp - 0xa7c], 1
mov dword [ebp - 0xa80], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42080e
mov ecx, dword [ebp - 0xa6c]
mov dword [ebp - 0xa80], ecx
lea ecx, [ebp - 0xa78]
mov dword [ebp - 0xa7c], 1
call fcn.00402e70
jmp 0x42080e
lea edx, [ebp - 0xa74]
push edx
push edi
call ebx
test eax, eax
je 0x42080e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea esp, [esp]
mov eax, dword [ebp - 0xa78]
push eax
lea ecx, [ebp - 0xa50]
push ecx
call esi
test eax, eax
je 0x4207f8
lea edx, [ebp - 0xa74]
push edx
push edi
call dword [ebp - 0xa8c]
test eax, eax
jne 0x4207d0
jmp 0x42080e
mov eax, dword [ebp - 0xa6c]
mov dword [ebp - 0xa7c], 1
mov dword [ebp - 0xa80], eax
mov ecx, dword [ebp - 0xa88]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xa90], 0
je 0x420836
mov ecx, dword [ebp - 0xa84]
push 0
push str.SeDebugPrivilege
call fcn.00415b80
cmp dword [ebp - 0xa7c], 0
je 0x42052c
mov eax, dword [ebp - 0xaa0]
test eax, eax
je 0x420855
mov edx, dword [ebp - 0xa80]
mov dword [eax], edx
mov eax, 1
jmp 0x42052e