Function at 0x44e650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2cc9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4e506c]
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 edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [edi], 0
mov dword [ebp - 4], 1
call fcn.00403a40
mov ecx, eax
test ecx, ecx
je 0x44e9d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
push 0
mov dword [ebp - 4], 0
push 0x1000
mov dword [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x44e76b
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x44e6fa
push 0x104
mov ecx, edi
call fcn.004036a0
mov ecx, dword [edi]
cmp dword [ecx - 8], 0x104
jl 0x44e9da
push 0x104
mov dword [ecx - 0xc], 0x104
xor edx, edx
mov eax, dword [edi]
push ecx
push edx
push esi
mov word [eax + 0x208], dx
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
mov eax, dword [edi]
test eax, eax
jne 0x44e733
xor ecx, ecx
jmp 0x44e749
push dword [eax - 8]
push eax
call fcn.00488d0c
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x44e9da
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x44e9da
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
push esi
mov word [eax + ecx*2], dx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44e9b2
mov dword [ebp - 4], 2
call fcn.00403a40
mov ecx, eax
test ecx, ecx
je 0x44e9e4
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.0040f680
add esp, 0xc
mov edx, 0x93
mov ecx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetup_setuputils.cpp
push dword [ebp - 0x14]
call fcn.00441390
add esp, 4
mov byte [ebp - 4], 4
call fcn.00403a40
mov ecx, eax
test ecx, ecx
je 0x44e9ee
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 eax, ecx
jge 0x44e806
push 0x104
lea ecx, [ebp - 0x18]
call fcn.004036a0
mov esi, dword [ebp - 0x18]
cmp dword [esi - 8], 0x104
lea ebx, [esi - 0x10]
jl 0x44e9f8
push esi
xor eax, eax
mov dword [ebx + 4], 0x104
push 0x104
mov word [esi + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebx + 8]
mov dword [ebp - 0x1c], eax
push esi
call fcn.00488d0c
add esp, 8
test eax, eax
js 0x44e9da
cmp eax, dword [ebx + 8]
jg 0x44e9da
xor ecx, ecx
mov dword [ebx + 4], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x1c], ecx
je 0x44e94c
cmp dword [ebx + 4], ecx
jl 0x44e8c9
push str.Trend_Micro
push esi
call fcn.00484bcb
add esp, 8
test eax, eax
je 0x44e8c9
sub eax, esi
sar eax, 1
test eax, eax
jle 0x44e8c9
mov ecx, dword [edi]
sub ecx, 0x10
mov dword [ebp - 0x20], ecx
cmp ebx, ecx
je 0x44e927
lea eax, [ecx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x44e91c
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x44e91c
mov ecx, ebx
call fcn.00403c70
mov esi, eax
mov ecx, dword [ebp - 0x1c]
or eax, 0xffffffff
mov byte [ebp - 4], 6
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x44e911
mov edx, dword [ebp - 0x20]
jmp 0x44e909
mov ecx, dword [edi]
sub ecx, 0x10
mov dword [ebp - 0x1c], ecx
cmp ebx, ecx
je 0x44e927
lea eax, [ecx + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x44e91c
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x44e91c
mov ecx, ebx
call fcn.00403c70
mov esi, eax
mov ecx, dword [ebp - 0x20]
or eax, 0xffffffff
mov byte [ebp - 4], 7
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x44e911
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi + 0x10]
mov byte [ebp - 4], 5
mov dword [edi], eax
jmp 0x44e927
push dword [ebx + 4]
mov ecx, edi
push esi
call fcn.0040c650
push 0xa
push str.Setup.exe
mov ecx, edi
call fcn.0044b210
push dword [edi]
lea eax, [ebp - 0x14]
push str.Guessing_the_pathname_of_parent_process_is__s
push eax
call fcn.0040f680
mov edx, 0xa7
jmp 0x44e966
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.GetCurrentDirectory___failed__error__0x_08X
push eax
call fcn.0040f680
mov edx, 0xaf
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov ecx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetup_setuputils.cpp
push esi
call fcn.00441390
add esp, 4
mov byte [ebp - 4], 8
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x44e993
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 9
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44e9b2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0046d675
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403bb0
push 0x80070057
call fcn.00403bb0
push 0x80004005
call fcn.00403bb0
push 0x80004005
call fcn.00403bb0
push 0x80070057
call fcn.00403bb0
int3