Function at 0x404320
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1c8
mov eax, dword [0x4c206c]
xor eax, esp
mov dword [esp + 0x1c4], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
call fcn.00402390
lea eax, [esp + 8]
mov dword [esp + 8], 0
xorps xmm0, xmm0
push eax
movaps xmmword [esp + 0x14], xmm0
push 0x20
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
test esi, esi
je 0x4043c1
lea eax, [esp + 0x14]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
test esi, esi
je 0x4043c1
push 0
push 0
push 0x10
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
mov eax, 1
test esi, esi
cmovne esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x4043d0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x404474
push 7
push str.trivial
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0xf
mov byte [esp + 0x18], 0
call fcn.0041ccc0
sub esp, 0xc
lea eax, [esp + 0x1c]
push 0x20
push str.d:workqninstall_srcinstallerinstaller_main.cpp
push str.int___stdcall_wWinMain_struct_HINSTANCE____struct_HINSTANCE____wchar_t__int_
push 8
push ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.0041bed0
cmp byte [eax + 0xf8], 0
je 0x404435
mov eax, dword [eax + 0x28]
mov edx, 0x4a9490
mov ecx, dword [eax + 0x54]
add ecx, 0x10
call fcn.0041d1c0
lea ecx, [esp + 0x38]
call fcn.00412bf0
mov edx, dword [esp + 0x24]
cmp edx, 0x10
jb 0x404474
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40446a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404570
push edx
push ecx
call fcn.00459719
add esp, 8
push edi
mov ecx, 0x4c7b7c
call fcn.00403da0
push 0x4aa9d8
lea ecx, [esp + 0xc]
call fcn.0041ddb0
lea eax, [esp + 8]
mov ecx, 0x4c7b80
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00404bf0
mov edx, dword [esp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4044bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0xc]
cmp eax, dword [0x4c7b80]
je 0x4044e6
call fcn.00404580
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c4]
xor ecx, esp
call fcn.004591b7
mov esp, ebp
pop ebp
ret 0x10
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 1
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
call fcn.00402a80
call fcn.00403710
lea ecx, [esp + 0x38]
call fcn.00420210
sub esp, 8
lea ecx, [esp + 0x40]
call fcn.004049b0
lea ecx, [esp + 0x38]
call fcn.00420480
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x1cc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004591b7
mov esp, ebp
pop ebp
ret 0x10
call fcn.00474c79
int3