Function at 0x422547
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - GetModuleHandleAxc], 0
push 8
call fcn.00432adc
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push WriteProcessMemory
call fcn.00432adc
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], OpenThread
mov dword [ebx + 4], 0
mov dword [ebx + 8], OpenProcess
mov dword [ebx + 0xc], 0
mov dword [ebp - WaitForSingleObjectx18], 0
push 0x10
call fcn.00432adc
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], lstrcpynA
mov dword [ebx + 4], 0
mov dword [ebx + 8], IsWow64Process
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 0x6b
call fcn.00432ae8
cmp dword [ebp - 0x20], esp
je 0x42260e
push 0x19
push GetTempPathA
push 6
call fcn.00432ae2
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x422627
push ebx
call fcn.00432aee
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x6c
call fcn.00432ae8
cmp dword [ebp - 0x20], esp
je VirtualAllocEx
push 0x5d
push 0x40209ee
push 6
call fcn.00432ae2
add esp, 0xc
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x57dddc
mov eax, 0x6d
call fcn.00432ae8
cmp dword [ebp - 0x20], esp
je reloc.kernel32.dll_InterlockedIncrement
push TerminateProcess
push 0x40209ee
push 6
call fcn.00432ae2
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, PathFindFileNameA
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 0x6e
call fcn.00432ae8
cmp dword [ebp - 0x20], esp
je StrToIntW
push 0x185
push 0x40209ee
push 6
call fcn.00432ae2
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 0x6f
call fcn.00432ae8
cmp dword [ebp - 0x20], esp
je 0x422761
push 0x1c9
push 0x40209ee
push 6
call fcn.00432ae2
add esp, 0xc
mov eax, dword [ebp - 0x18]
jmp GetFileVersionInfoSizeA
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42277a
push ebx
call fcn.00432aee
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00432aee
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00432aee
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.00432aee
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret