Function at 0x4039d0
Capabilities:
Acquire debug privileges

Disassembly:
push 0xffffffffffffffff
push 0x454657
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4652b0]
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.00404280
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 0x403d36
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 0x403d1f
mov edx, dword [0x467e80]
mov eax, dword [edx + 0xc]
mov ecx, 0x467e80
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.00402e60
add esp, 4
mov byte [esp + 0x120], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x403b2d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x403b1c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x403b1c
call fcn.004047a0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x403b13
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 0x403b2d
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00404710
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 0x403b55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi - 0xc], 0
jne 0x403bf1
mov ecx, dword [esp + 0x74]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
call fcn.00404020
mov byte [esp + 0x120], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x403bc9
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x403bb8
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x403bb8
call fcn.004047a0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x403baf
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 0x403bc9
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00404710
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 0x403bf1
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 0x403cfb
push 0x5c
push edi
call fcn.0043e04e
add esp, 8
test eax, eax
jne 0x403c10
or ecx, 0xffffffff
jmp 0x403c14
sub eax, edi
mov ecx, eax
mov eax, esi
sub eax, ecx
dec eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
call fcn.00404210
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 0x403da3
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.0043e70f
add esp, 8
test eax, eax
jne 0x403cd7
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 0x403ca7
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x12c]
mov edx, dword [ecx]
push eax
push 0
push 0x323
push edx
call fcn.00402f60
push eax
push str.Start__s_by__s_MsgID_d_hr_d_ravxpPid_d
jmp 0x403cca
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x12c]
push ecx
push eax
mov eax, dword [edx]
push 0x323
push eax
call fcn.00402f60
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 0x403cfb
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 0x403d1f
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 0x403a84
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 0x403d68
mov esi, dword [eax]
push eax
call fcn.0043ea71
mov ecx, dword [esp + 0x48]
add esp, 4
mov eax, esi
cmp esi, ecx
jne 0x403d53
push ecx
call fcn.0043ea71
mov eax, dword [esp + 0x34]
add esp, 4
push eax
mov dword [esp + 0x48], edi
call fcn.0043ea71
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.004059f0
int3