Function at 0x403720
Capabilities:
Acquire debug privileges

Disassembly:
push 0xffffffffffffffff
push 0x44dc37
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x128]
lea eax, [esp + 0x2c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x50]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea edx, [esp + 0x58]
push edx
push 0
push esi
mov dword [esp + 0x64], 1
mov dword [esp + 0x70], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x30]
push eax
call fcn.0042e0a0
mov dword [esp + 0x120], 0
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x1c]
push eax
call edx
test eax, eax
jne 0x403a86
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x20]
push edx
call eax
test eax, eax
jne 0x403a6f
mov edx, dword [0x45fdc0]
mov eax, dword [edx + 0xc]
mov ecx, 0x45fdc0
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 1
push ecx
mov ecx, dword [esp + 0x84]
call fcn.00402ed0
add esp, 4
mov byte [esp + 0x120], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x40387d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40386c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40386c
call fcn.004041e0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x403863
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x18], edi
jmp 0x40387d
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00404150
mov edi, dword [esp + 0x18]
mov byte [esp + 0x120], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4038a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi - 0xc], 0
jne 0x403941
mov ecx, dword [esp + 0x74]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
call fcn.00403d70
mov byte [esp + 0x120], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x403919
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x403908
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x403908
call fcn.004041e0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4038ff
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x18], edi
jmp 0x403919
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00404150
mov edi, dword [esp + 0x18]
mov byte [esp + 0x120], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403941
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi - 0xc]
test esi, esi
je 0x403a4b
push 0x5c
push edi
call fcn.00437d4b
add esp, 8
test eax, eax
jne 0x403960
or ecx, 0xffffffff
jmp 0x403964
sub eax, edi
mov ecx, eax
mov eax, esi
sub eax, ecx
dec eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
call fcn.00403f40
mov ecx, dword [esp + 0x12c]
mov byte [esp + 0x120], 4
mov eax, dword [ecx]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403af3
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.0043840c
add esp, 8
test eax, eax
jne 0x403a27
mov ebx, dword [esp + 0x130]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push eax
mov eax, dword [esp + 0x138]
push eax
mov eax, dword [esp + 0x7c]
push ebx
push 0x323
push eax
call edx
test eax, eax
jne 0x4039f7
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x12c]
mov edx, dword [ecx]
push eax
push 0
push 0x323
push edx
call fcn.00402fd0
push eax
push str.Start__s_by__s_MsgID_d_hr_d_ravxpPid_d
jmp 0x403a1a
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x12c]
push ecx
push eax
mov eax, dword [edx]
push 0x323
push eax
call fcn.00402fd0
push eax
push str.Start_Failed__s_by__s_MsgID_d_hr_d_ravxpPid_d
push 0x80
call fcn.004025a0
add esp, 0x1c
lea eax, [esi - 0x10]
mov byte [esp + 0x120], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x120], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x1c]
push eax
call edx
test eax, eax
je 0x4037d4
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x44]
xor edi, edi
mov dword [esp + 0x48], edi
cmp eax, ecx
je 0x403ab8
mov esi, dword [eax]
push eax
call fcn.0043876e
mov ecx, dword [esp + 0x48]
add esp, 4
mov eax, esi
cmp esi, ecx
jne 0x403aa3
push ecx
call fcn.0043876e
mov eax, dword [esp + 0x34]
add esp, 4
push eax
mov dword [esp + 0x48], edi
call fcn.0043876e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 0x10
push 0x80004005
call fcn.00404c40
int3