Function at 0x4030a0
Capabilities:
Acquire debug privileges
Check if file exists
Get file attributes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x44dca2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x1d4]
mov dword fs:[0], eax
lea eax, [esp + 0x44]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [esp + 0x44]
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]
mov esi, dword [esp + 0x1e4]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x114]
push edx
call eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0042e0a0
mov dword [esp + 0x1dc], 0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x20]
push eax
call edx
test eax, eax
jne 0x40358e
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x24]
push edx
call eax
test eax, eax
jne 0x403578
mov edx, dword [0x45fdc0]
mov eax, dword [edx + 0xc]
mov ecx, 0x45fdc0
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x1dc], 1
push ecx
mov ecx, dword [esp + 0x84]
call fcn.00402ed0
add esp, 4
mov byte [esp + 0x1dc], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [ebp - 0x10]
cmp eax, edi
je 0x40320d
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4031fc
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4031fc
call fcn.004041e0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4031f3
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x40320d
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00404150
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x1dc], 1
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403235
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0xc], 0
jne 0x4032d1
mov ecx, dword [esp + 0x74]
push ecx
lea edx, [esp + 0x4c]
push edx
push esi
call fcn.00403d70
mov byte [esp + 0x1dc], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [ebp - 0x10]
cmp eax, edi
je 0x4032a9
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x403298
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x403298
call fcn.004041e0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40328f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x4032a9
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00404150
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x1dc], 1
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1e8]
test eax, eax
je 0x4032eb
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00402a80
test eax, eax
jne 0x40331b
push ebp
push str._s_Not_in_List_Continue
push 0x80
call fcn.004025a0
add ebp, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x1dc], 0
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jmp 0x40356b
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x403336
mov edx, dword [esp + 0x80]
push edx
mov ebx, ecx
call fcn.00402a00
test eax, eax
jne 0x403369
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 4]
lea ebx, [eax + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.0042e820
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.0042c0f0
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov edi, dword [esp + 0x1ec]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x403513
mov edx, dword [0x45fdc0]
mov eax, dword [edx + 0xc]
mov ecx, 0x45fdc0
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov ebx, dword [esp + 0x1e4]
mov byte [esp + 0x1dc], 4
mov eax, dword [ebx + 0x34]
sub eax, 0x10
call fcn.004041e0
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x1dc], 5
call fcn.00403ee0
push 0x451188
lea ecx, [esp + 0x20]
push ecx
mov edx, 1
call fcn.00404270
mov eax, dword [edi]
mov edx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00404270
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4034c0
mov ecx, dword [ebx + 0x38]
push ebp
push ecx
push edi
push str._s__PRODUCT_s__PATH_s
lea edi, [esp + 0x28]
call fcn.004044a0
mov esi, dword [esp + 0x28]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x208
sub eax, edi
add esp, 0x10
or eax, ecx
jge 0x40343d
mov ecx, edi
lea eax, [esp + 0x18]
call fcn.004043a0
mov esi, dword [esp + 0x18]
cmp dword [esi - 8], edi
jl 0x403611
mov dword [esi - 0xc], edi
push esi
mov byte [esi + 0x208], 0
call fcn.00403030
add esp, 4
cmp dword [esp + 0x68], 0x259
mov edi, eax
je 0x4034c0
mov edx, dword [esp + 0x74]
push edx
push str.Will_SendMessageTo_Comx3Obj__d_MSG_id_RAV_EP_RUN_RAV_XP
push 0x80
call fcn.004025a0
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403481
mov ecx, dword [ebx + 8]
sub eax, edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
sar eax, 1
push 0
lea eax, [eax + eax + 2]
push eax
mov eax, dword [esp + 0x7c]
push edi
push 0x65
push eax
call edx
mov eax, dword [esp + 0x74]
push eax
push str.SendMessageTo_Comx3Obj__d
push 0x80
call fcn.004025a0
add esp, 0xc
mov byte [esp + 0x1dc], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0x1dc], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40350c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov esi, dword [esp + 0x1e4]
mov eax, dword [esp + 0x80]
push ebp
push eax
push str.Quit:___d__s_by_Comx3
push 0x80
call fcn.004025a0
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [esp + 0x84]
mov edx, dword [edx + 0x2c]
add esp, 0x10
push 0
push 0
push 0
push 0x64
push eax
call edx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 0xfffffff0
mov byte [esp + 0x1dc], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403578
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x20]
push eax
call edx
test eax, eax
je 0x403165
mov ecx, dword [esp + 0x38]
mov ebx, dword [ecx]
mov ebp, dword [esp + 0x24]
mov esi, ecx
test ebp, ebp
je 0x4035a4
cmp ebp, dword [esp + 0x24]
je 0x4035ad
call fcn.00438959
mov ecx, dword [esp + 0x38]
cmp ebx, esi
je 0x4036a4
test ebp, ebp
jne 0x40361b
call fcn.00438959
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x4035ca
call fcn.00438959
mov esi, dword [ebx + 8]
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x403665
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403620
push esi
push str.__d__Quit_Successfully...
push 0x80
call fcn.004025a0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40367f
push 0x80070057
call fcn.00404c40
mov eax, dword [ebp]
jmp 0x4035c0
cmp eax, 0x102
jne 0x40364c
push esi
push str.TerminateProcess___d_
push 0x80
call fcn.004025a0
add esp, 0xc
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40367f
push eax
push str.Wait_Return:__d
push 4
call fcn.004025a0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40367f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.OpenProcess__d__Failed._Err_Code:__d
push 0x80
call fcn.004025a0
add esp, 0x10
test ebp, ebp
jne 0x40369f
call fcn.00438959
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x403694
call fcn.00438959
mov ebx, dword [ebx]
mov ecx, dword [esp + 0x38]
jmp 0x403598
mov eax, dword [ebp]
jmp 0x40368a
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x38]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], 0
cmp eax, ecx
je 0x4036d5
nop
mov esi, dword [eax]
push eax
call fcn.0043876e
mov ecx, dword [esp + 0x3c]
add esp, 4
mov eax, esi
cmp esi, ecx
jne 0x4036c0
push ecx
call fcn.0043876e
mov eax, dword [esp + 0x28]
add esp, 4
push eax
mov dword [esp + 0x3c], 0
call fcn.0043876e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret 0xc