Function at 0x454dc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2b0e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4de080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0
mov dword [ebx], 0
mov dword [ebp - 4], 1
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x4550e0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push esi
push 0
mov dword [ebp - 4], 0
push 0x1000
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x454edb
mov eax, dword [ebx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x454e6a
push 0x104
mov ecx, ebx
call fcn.00404a30
mov ecx, dword [ebx]
cmp dword [ecx - 8], 0x104
jl 0x4550d6
push 0x104
mov dword [ecx - 0xc], 0x104
xor edx, edx
mov eax, dword [ebx]
push ecx
push edx
push esi
mov word [eax + 0x208], dx
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
mov eax, dword [ebx]
test eax, eax
jne 0x454ea3
xor ecx, ecx
jmp 0x454eb9
push dword [eax - 8]
push eax
call fcn.004889d3
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4550d6
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x4550d6
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
push esi
mov word [eax + ecx*2], dx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4550b8
mov dword [ebp - 4], 2
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x4550e0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.Couldnt_call_OpenProcess___on_parent_process__error__0x_08X
push eax
call fcn.00411000
add esp, 0xc
mov edx, 0x93
mov ecx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupSetupUtils.cpp
push dword [ebp - 0x14]
call fcn.00447130
add esp, 4
mov byte [ebp - 4], 4
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x4550e0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 5
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or ecx, eax
jge 0x454f76
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00404a30
mov esi, dword [ebp - 0x18]
cmp dword [esi - 8], 0x104
jl 0x4550d6
push esi
xor eax, eax
mov dword [esi - 0xc], 0x104
push 0x104
mov word [esi + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [esi - 8]
mov edi, eax
push esi
call fcn.004889d3
add esp, 8
test eax, eax
js 0x4550d6
cmp eax, dword [esi - 8]
jg 0x4550d6
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
je 0x45505b
cmp dword [esi - 0xc], ecx
jl 0x454fea
push str.Trend_Micro
push esi
call fcn.00484ca9
add esp, 8
test eax, eax
je 0x454fea
sub eax, esi
sar eax, 1
mov edi, dword [ebx]
lea ecx, [esi - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x455036
cmp dword [edi + 0xc], 0
jl 0x45502b
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x45502b
call fcn.00404ec0
mov dword [ebp - 0x1c], eax
lea ecx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x455021
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebx], eax
jmp 0x455036
push dword [esi - 0xc]
mov ecx, ebx
push esi
call fcn.0040e140
push 0xa
push str.Setup.exe
mov ecx, ebx
call fcn.00451480
push dword [ebx]
lea eax, [ebp - 0x14]
push str.Guessing_the_pathname_of_parent_process_is__s
push eax
call fcn.00411000
mov edx, 0xa7
jmp 0x455075
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.GetCurrentDirectory___failed__error__0x_08X
push eax
call fcn.00411000
mov edx, 0xaf
mov edi, dword [ebp - 0x14]
add esp, 0xc
mov ecx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupSetupUtils.cpp
push edi
call fcn.00447130
lea edx, [esi - 0x10]
add esp, 4
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4550a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4550b8
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00483226
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404ea0
push 0x80004005
call fcn.00404ea0
int3