Function at 0x1004ae60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x620], eax
cmp dword [ebx + 0x4c], 0
jne 0x1004ae98
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret 4
push esi
push edi
xor edi, edi
cmp byte [ebx + 0xd0], 0
je 0x1004aeeb
push 8
call fcn.10213511
add esp, 4
test eax, eax
je 0x1004aebe
mov ecx, eax
call fcn.10130980
mov esi, eax
jmp 0x1004aec0
xor esi, esi
push 0x10
call fcn.10213511
mov edi, eax
add esp, 4
test edi, edi
je 0x1004aee9
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_class_DISABLE_WOW64_FILE_REDIR_.0
mov dword [edi + 0xc], esi
jmp 0x1004aeeb
xor edi, edi
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 0x1004af1e
xor bl, bl
jmp 0x1004b1bd
movzx eax, byte [ebx + 0xd1]
neg eax
push 0x208
sbb eax, eax
and eax, 0xffffff00
add eax, 0xf023f
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.102134e7
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
lea esi, [ebx + 0x3c]
mov dword [ebp - 0x624], 1
add esp, 0x18
mov dword [ebp - 0x628], 0x208
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004af83
mov eax, dword [esi]
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 - 0x628]
push dword [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x624]
push eax
push str.ServiceDll
lea eax, [ebp - 0x414]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10003510
test eax, eax
jne 0x1004b001
cmp word [ebp - 0x20c], ax
je 0x1004b001
mov eax, dword [ebp - 0x624]
cmp eax, 1
je 0x1004b09d
cmp eax, 2
je 0x1004b09d
cmp eax, 7
je 0x1004b09d
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x624], 1
mov dword [ebp - 0x628], 0x208
jb 0x1004b01f
mov eax, dword [esi]
push eax
push str.SYSTEMCurrentControlSetServices
push 0x1021b408
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000bd10
add esp, 0x14
lea eax, [ebp - 0x628]
push dword [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x624]
push eax
push str.ImagePath
lea eax, [ebp - 0x414]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10003510
test eax, eax
jne 0x1004b135
cmp word [ebp - 0x20c], ax
je 0x1004b135
mov eax, dword [ebp - 0x624]
cmp eax, 1
je 0x1004b09d
cmp eax, 2
je 0x1004b09d
cmp eax, 7
jne 0x1004b135
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004b0a7
mov eax, dword [esi]
push eax
push dword [ebp - 0x620]
call fcn.100468d0
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, 0x20
test eax, eax
je 0x1004b126
movzx eax, byte [ebx + 0xa]
push eax
push dword [ebx]
movzx eax, byte [ebx + 0xd4]
push eax
movzx eax, byte [ebx + 0xd0]
push eax
push 1
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x620]
call fcn.1003ed10
add esp, 0x1c
jmp 0x1004b135
lea eax, [ebp - 0x20c]
push eax
call fcn.100e4190
add esp, 4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004b13f
mov eax, dword [esi]
push eax
push str.SYSTEMCurrentControlSetServices
push str._s_sParameters
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000bd10
mov ebx, dword [ebp - 0x62c]
lea eax, [ebp - 0x414]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp - 0x620]
call fcn.1003ee10
add esp, 0x24
cmp dword [esi + 0x14], 8
jb 0x1004b184
mov esi, dword [esi]
push esi
push str.SYSTEMCurrentControlSetServices
push 0x1021b408
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000bd10
push ebx
lea eax, [ebp - 0x414]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp - 0x620]
call fcn.1003ee10
add esp, 0x24
mov bl, 1
test edi, edi
je 0x1004b1e2
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1004b1e2
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1004b1e2
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret 4