Function at 0x4904d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5b28ba
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
push 4
mov dword [esp + 0x1c], edi
call fcn.005737a7
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x234], 1
xor ebx, ebx
cmp eax, ebx
je 0x490535
mov dword [eax], edi
jmp 0x490537
xor eax, eax
mov dword [esp + 0x234], 0xffffffff
mov dword [edi], eax
mov dword [esp + 0x234], 3
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [esp + 0x234], 5
lea eax, [esp + 0x10]
push 0x2a
push eax
call fcn.00471ff0
add esp, 8
mov byte [esp + 0x234], 6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x4905d3
lea edx, [esp + 0x14]
push str.WindowsApps
push edx
lea ecx, [esp + 0x18]
call fcn.0040fc53
add esp, 8
mov byte [esp + 0x234], 7
push eax
mov eax, edi
call fcn.0041395f
mov byte [esp + 0x234], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4905d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x14]
call fcn.004903b0
mov byte [esp + 0x234], 9
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x490639
cmp dword [esi + 0xc], ebx
lea ebp, [esi + 0xc]
jl 0x49062b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49062b
call fcn.0040b401
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x490620
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x10], ebx
xor ebx, ebx
jmp 0x490639
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea eax, [esp + 0x18]
call fcn.0040b33c
mov byte [esp + 0x234], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490663
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], ebx
je 0x4906b9
lea edx, [esp + 0x14]
push str.WindowsApps
push edx
lea ecx, [esp + 0x18]
call fcn.0040fc53
add esp, 8
mov byte [esp + 0x234], 0xb
push eax
mov eax, edi
call fcn.0041395f
mov byte [esp + 0x234], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4906b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x206
lea edx, [esp + 0x26]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x2c], cx
call fcn.005783f0
add esp, 0xc
push 0x104
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4906f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x18]
call fcn.0040b33c
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], ebx
je 0x490764
lea eax, [esp + 0x14]
push str.InfusedApps
push eax
lea ecx, [esp + 0x18]
call fcn.0040fc53
add esp, 8
mov byte [esp + 0x234], 0xd
push eax
mov eax, edi
call fcn.0041395f
mov byte [esp + 0x234], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490764
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x234], 5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49078b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x234], esi
mov eax, edi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0057372c
add esp, 0x228
ret