Function at 0x1004e390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x660], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x65c], edi
mov dword [ebp - 0x658], eax
cmp dword [edi + 0x4c], 0
jne 0x1004e3d7
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
xor esi, esi
cmp byte [edi + 0xd0], 0
je 0x1004e42a
push 8
call fcn.10213511
add esp, 4
test eax, eax
je 0x1004e3fd
mov ecx, eax
call fcn.10130980
mov ebx, eax
jmp 0x1004e3ff
xor ebx, ebx
push 0x10
call fcn.10213511
mov esi, eax
add esp, 4
test esi, esi
je 0x1004e428
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_class_DISABLE_WOW64_FILE_REDIR_.0
mov dword [esi + 0xc], ebx
jmp 0x1004e42a
xor esi, esi
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1004e45d
xor bl, bl
jmp 0x1004e6cc
movzx ebx, byte [edi + 0xd1]
lea eax, [ebp - 0x414]
neg ebx
push 0x208
sbb ebx, ebx
push 0
and ebx, 0xffffff00
push eax
add ebx, 0xf023f
call fcn.102134e7
add edi, 0x3c
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x1004e497
mov eax, dword [edi]
push eax
push str.SYSTEMCurrentControlSetServices
push 0x1021b408
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000bd10
push dword [ebp - 0x658]
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x65c]
push reloc.OLEAUT32.dll_SysReAllocString
movzx eax, byte [eax + 0xd1]
push eax
call fcn.1003c240
add esp, 0x24
mov byte [ebp - 0x64d], al
test al, al
je 0x1004e6c6
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
add esp, 0xc
mov dword [ebp - 0x654], 1
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x658], 0x208
jb 0x1004e51d
mov eax, dword [edi]
push eax
push str.SYSTEMCurrentControlSetServices
push str._s_sParameters
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000bd10
add esp, 0x14
lea eax, [ebp - 0x658]
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x654]
push eax
push str.ServiceDll
lea eax, [ebp - 0x414]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10003510
test eax, eax
jne 0x1004e596
cmp word [ebp - 0x20c], ax
je 0x1004e596
mov eax, dword [ebp - 0x654]
cmp eax, 1
je 0x1004e62b
cmp eax, 2
je 0x1004e62b
cmp eax, 7
je 0x1004e62b
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x654], 1
mov dword [ebp - 0x658], 0x208
jb 0x1004e5b2
mov edi, dword [edi]
push edi
push str.SYSTEMCurrentControlSetServices
push 0x1021b408
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000bd10
add esp, 0x14
lea eax, [ebp - 0x658]
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x654]
push eax
push str.ImagePath
lea eax, [ebp - 0x414]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10003510
test eax, eax
jne 0x1004e6c6
cmp word [ebp - 0x20c], ax
je 0x1004e6c6
mov eax, dword [ebp - 0x654]
cmp eax, 1
je 0x1004e62b
cmp eax, 2
je 0x1004e62b
cmp eax, 7
jne 0x1004e6c6
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.101644b0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.10164b80
lea eax, [ebp - 0x20c]
push eax
call fcn.10046970
lea eax, [ebp - 0x20c]
push eax
call fcn.1000bcb0
add esp, 0x18
test eax, eax
je 0x1004e6c6
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x634]
call fcn.10006b40
lea eax, [ebp - 0x634]
push eax
mov eax, dword [ebp - 0x65c]
movzx eax, byte [eax + 0xd0]
push eax
lea eax, [ebp - 0x64c]
push eax
call fcn.10041220
mov ecx, dword [ebp - 0x660]
add esp, 0xc
push eax
call fcn.10054840
lea ecx, [ebp - 0x64c]
call fcn.1001d6d0
lea ecx, [ebp - 0x634]
call fcn.1001d6d0
mov bl, byte [ebp - 0x64d]
test esi, esi
je 0x1004e6f1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1004e6f1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1004e6f1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.10212f74
mov esp, ebp
pop ebp
ret 8