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

Disassembly:
push 0xffffffffffffffff
push 0x4546d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4652b0]
xor eax, esp
push eax
lea eax, [esp + 0x1ec]
mov dword fs:[0], eax
lea eax, [esp + 0x60]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [esp + 0x60]
lea ecx, [esp + 0x68]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea edx, [esp + 0x70]
push edx
push 0
push esi
mov dword [esp + 0x7c], 1
mov dword [esp + 0x88], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x1fc]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x12c]
push edx
call eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00404280
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x1f8], 0
call fcn.00425fb0
mov byte [esp + 0x1f4], 1
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
lea edx, [esp + 0x20]
push edx
call eax
test eax, eax
jne 0x4037e3
lea ebx, [ebx]
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x24]
push eax
call edx
test eax, eax
jne 0x4037cd
mov eax, dword [0x467e80]
mov edx, dword [eax + 0xc]
mov ecx, 0x467e80
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x58]
mov byte [esp + 0x1f4], 2
mov ecx, dword [esp + 0x98]
push eax
call fcn.00402e60
add esp, 4
mov byte [esp + 0x1f4], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [ebp - 0x10]
cmp eax, edi
je 0x4033b7
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4033a6
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4033a6
call fcn.004047a0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40339d
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 0x4033b7
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00404710
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x1f4], 2
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4033df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0xc], 0
jne 0x40347e
mov ecx, dword [esp + 0x8c]
push ecx
lea edx, [esp + 0x60]
push edx
push esi
call fcn.00404020
mov byte [esp + 0x1f4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [ebp - 0x10]
cmp eax, edi
je 0x403456
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x403445
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x403445
call fcn.004047a0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40343c
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 0x403456
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00404710
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x1f4], 2
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40347e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x403498
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00402a10
test eax, eax
jne 0x4034c8
push ebp
push str._s_Not_in_List_Continue
push 0x80
call fcn.004025a0
add ebp, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x1f4], 1
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jmp 0x4037c0
mov eax, dword [esi + 0x38]
push 0x458458
push eax
call fcn.0043e70f
add esp, 8
test eax, eax
jne 0x403563
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x4c]
test ecx, 0xfffffffc
je 0x403556
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x30], esp
push edx
lea ecx, [esp + 0x5c]
call fcn.00404320
push ecx
lea edi, [ebp - 0x10]
mov byte [esp + 0x210], 5
mov eax, edi
mov dword [esp + 0x38], esp
mov ebx, esp
call fcn.004047a0
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x210], 2
call fcn.00403030
test eax, eax
je 0x403556
mov byte [esp + 0x1f4], 1
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4037cd
mov ecx, dword [edi]
push edi
jmp 0x4037c6
lea ebx, [esp + 0x14]
lea edi, [esp + 0x40]
call fcn.00404460
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x40357e
mov edx, dword [esp + 0x98]
push edx
mov ebx, ecx
call fcn.00402990
test eax, eax
jne 0x4035b1
mov eax, dword [esp + 0x98]
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.00404810
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.00431dc0
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov edi, dword [esp + 0x204]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x403768
mov edx, dword [0x467e80]
mov eax, dword [edx + 0xc]
mov ecx, 0x467e80
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov ebx, dword [esp + 0x1fc]
mov byte [esp + 0x1f4], 6
mov eax, dword [ebx + 0x34]
sub eax, 0x10
call fcn.004047a0
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x1f4], 7
call fcn.004041b0
push 0x4581b8
lea ecx, [esp + 0x20]
push ecx
mov edx, 1
call fcn.00404c50
mov eax, dword [edi]
mov edx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00404c50
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403715
mov ecx, dword [ebx + 0x38]
push ebp
push ecx
push edi
push str._s__PRODUCT_s__PATH_s
lea edi, [esp + 0x28]
call fcn.00404e80
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 0x403685
mov ecx, edi
lea eax, [esp + 0x18]
call fcn.00404d80
mov esi, dword [esp + 0x18]
cmp dword [esi - 8], edi
jl 0x403867
mov dword [esi - 0xc], edi
push esi
mov byte [esi + 0x208], 0
call fcn.00402fc0
add esp, 4
cmp dword [esp + 0x80], 0x259
mov edi, eax
je 0x403715
mov edx, dword [esp + 0x8c]
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]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4036d0
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 + 0x94]
push edi
push 0x65
push eax
call edx
mov eax, dword [esp + 0x8c]
push eax
push str.SendMessageTo_Comx3Obj__d
push 0x80
call fcn.004025a0
add esp, 0xc
mov byte [esp + 0x1f4], 6
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 0x40373d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0x1f4], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403761
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov esi, dword [esp + 0x1fc]
mov eax, dword [esp + 0x98]
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 + 0x9c]
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 + 0x1f4], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4037cd
mov ecx, dword [ebp]
push ebp
mov edx, dword [ecx]
mov eax, dword [edx + 4]
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 0x403310
mov eax, dword [esp + 0x38]
mov ebx, dword [eax]
mov ebp, dword [esp + 0x24]
lea ecx, [ecx]
mov esi, dword [esp + 0x38]
test ebp, ebp
je 0x4037fe
cmp ebp, dword [esp + 0x24]
je 0x403803
call fcn.0043ec5c
cmp ebx, esi
je 0x4038f6
test ebp, ebp
jne 0x403871
call fcn.0043ec5c
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x403820
call fcn.0043ec5c
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 0x4038bb
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403876
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 0x4038d5
push 0x80070057
call fcn.004059f0
mov eax, dword [ebp]
jmp 0x403816
cmp eax, 0x102
jne 0x4038a2
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 0x4038d5
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 0x4038d5
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 0x4038f1
call fcn.0043ec5c
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x4038ea
call fcn.0043ec5c
mov ebx, dword [ebx]
jmp 0x4037f0
mov eax, dword [ebp]
jmp 0x4038e0
mov byte [esp + 0x1f4], 0
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x403942
mov eax, dword [esp + 0x50]
mov edi, eax
cmp esi, eax
je 0x403939
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40392e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x403910
mov esi, dword [esp + 0x4c]
push esi
call fcn.0043ea71
add esp, 4
mov ecx, dword [esp + 0x40]
xor edi, edi
push ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.0043ea71
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x3c], edi
cmp eax, ecx
je 0x40398d
mov esi, dword [eax]
push eax
call fcn.0043ea71
mov ecx, dword [esp + 0x3c]
add esp, 4
mov eax, esi
cmp esi, ecx
jne 0x403978
push ecx
call fcn.0043ea71
mov edx, dword [esp + 0x28]
add esp, 4
push edx
mov dword [esp + 0x3c], edi
call fcn.0043ea71
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x1ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e4
ret 0xc