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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d42b
mov eax, dword fs:[0]
push eax
sub esp, 0xa9c
mov eax, dword [0x5976b8]
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 0x40c2c3
mov dword [eax], 0
test ecx, ecx
je 0x40c40c
cmp word [ecx], 0
je 0x40c40c
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x53dec8
push esi
call edi
push 0x53deb8
push esi
mov dword [ebp - 0xa9c], eax
call edi
push 0x53dea8
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 0x40c40c
cmp ebx, esi
je 0x40c40c
cmp dword [ebp - 0xa94], esi
je 0x40c40c
cmp dword [ebp - 0xa98], esi
je 0x40c40c
mov edi, dword [ebp - 0xa9c]
cmp edi, esi
je 0x40c40c
push 0x22c
lea eax, [ebp - 0xa74]
push esi
push eax
mov dword [ebp - 0xa80], esi
call fcn.005149a0
mov dword [ebp - 0xa90], esi
mov esi, 2
add esp, 0xc
mov dword [ebp - 0xa74], 0x22c
cmp dword [ebp + 0x1c], esi
jne 0x40c3d5
mov eax, dword [ebp + 0x10]
cmp eax, 5
ja 0x40c3b9
jne 0x40c3d5
cmp dword [ebp + 0x14], 1
jb 0x40c3d5
mov ecx, dword [ebp - 0xa84]
push 1
push str.SeDebugPrivilege
mov dword [ebp - 0xa90], 1
call fcn.00406a30
push 0
push esi
mov dword [ebp - 0xa7c], 0
call edi
mov edi, eax
mov dword [ebp - 0xa88], edi
cmp edi, 0xffffffff
jne 0x40c42c
cmp dword [ebp - 0xa90], 0
je 0x40c40c
mov ecx, dword [ebp - 0xa84]
push 0
push str.SeDebugPrivilege
call fcn.00406a30
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.00514990
mov esp, ebp
pop ebp
ret 0x11c
cmp dword [ebp + 0x1c], esi
jne 0x40c698
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov word [ebp - 0x420], cx
call fcn.005149a0
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.00515853
mov edx, dword [ebp - 0xa88]
add esp, 0xc
lea ecx, [ebp - 0xa74]
push ecx
push edx
call ebx
test eax, eax
je 0x40c6ee
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 0x40c635
mov ebx, dword [ebp - 0xaa4]
test ebx, ebx
je 0x40c535
mov edx, dword [ebp - 0xa6c]
push edx
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40c635
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.005149a0
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 0x40c529
push edi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c656
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c635
push 0x424
lea edx, [ebp - 0x844]
push 0
push edx
call fcn.005149a0
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 0x40c5d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12b
jne 0x40c635
lea ecx, [ebp - 0xa78]
call fcn.004037a0
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.00409d90
test eax, eax
je 0x40c5bf
push edi
lea ecx, [ebp - 0xa78]
call fcn.00403470
test eax, eax
je 0x40c675
lea ecx, [ebp - 0xa78]
mov dword [ebp - 4], 0xffffffff
call fcn.004037d0
jmp 0x40c635
lea eax, [ebp - 0x848]
push eax
push esi
call dword [ebp - 0xa94]
test eax, eax
je 0x40c621
push edi
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c60b
lea edx, [ebp - 0x848]
push edx
push esi
call dword [ebp - 0xa98]
test eax, eax
jne 0x40c5e5
jmp 0x40c621
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 0x40c6ee
mov edx, dword [ebp - 0xa88]
lea ecx, [ebp - 0xa74]
push ecx
push edx
call dword [ebp - 0xa8c]
test eax, eax
jne 0x40c490
jmp 0x40c6ee
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 0x40c6ee
mov ecx, dword [ebp - 0xa6c]
mov dword [ebp - 0xa80], ecx
lea ecx, [ebp - 0xa78]
mov dword [ebp - 0xa7c], 1
call fcn.004037d0
jmp 0x40c6ee
lea edx, [ebp - 0xa74]
push edx
push edi
call ebx
test eax, eax
je 0x40c6ee
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 0x40c6d8
lea edx, [ebp - 0xa74]
push edx
push edi
call dword [ebp - 0xa8c]
test eax, eax
jne 0x40c6b0
jmp 0x40c6ee
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 0x40c716
mov ecx, dword [ebp - 0xa84]
push 0
push str.SeDebugPrivilege
call fcn.00406a30
cmp dword [ebp - 0xa7c], 0
je 0x40c40c
mov eax, dword [ebp - 0xaa0]
test eax, eax
je 0x40c735
mov edx, dword [ebp - 0xa80]
mov dword [eax], edx
mov eax, 1
jmp 0x40c40e