Function at 0x45d410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc05d
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x504c94]
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 edi, ecx
mov dword [ebp - 0x22c], edi
call fcn.0049d1fb
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x45d462
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
lea esi, [edi + 4]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], esi
call fcn.0049d1fb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x45d496
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.0049d1fb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x45d4c2
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 8], eax
mov byte [ebp - 4], 2
call fcn.0049d1fb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x45d4ef
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0xc], eax
push 4
mov byte [ebp - 4], 3
lea esi, [edi + 0x10]
call fcn.0049caea
add esp, 4
cmp eax, ebx
je 0x45d517
mov dword [eax], esi
jmp 0x45d519
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea ecx, [edi + 0x28]
push ecx
mov byte [ebp - 4], 5
call fcn.00457ea0
push 4
mov byte [ebp - 4], 6
lea esi, [edi + 0x9c]
call fcn.0049caea
add esp, 4
cmp eax, ebx
je 0x45d54d
mov dword [eax], esi
jmp 0x45d54f
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
add edi, 0xb4
push edi
mov byte [ebp - 4], 8
call fcn.00462750
push 0x104
lea edx, [ebp - 0x218]
push edx
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x218]
push eax
call fcn.004ab8ea
add esp, 4
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.00423f13
push ecx
mov esi, esp
mov dword [ebp - 0x234], esp
mov dword [ebp - 0x230], esi
call fcn.0049d1fb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x45d5cb
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov eax, 0x4d9c3c
shr eax, 0x10
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x21c], eax
cmp eax, ebx
jne 0x45d6e5
mov ecx, 0x4d9c3c
movzx edi, cx
push edi
call fcn.004a5121
mov dword [ebp - 0x220], eax
cmp eax, ebx
je 0x45d6ff
mov edx, edi
shr edx, 4
inc edx
movzx ecx, dx
push 6
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45d6ff
mov edx, dword [ebp - 0x220]
push edi
push eax
push edx
call fcn.004216fe
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x45d6ff
mov eax, dword [esi]
movzx edi, word [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x45d666
push edi
mov ecx, esi
call fcn.0042151d
mov eax, dword [esi]
mov dword [ebp - 0x220], eax
movzx eax, word [ebx]
add ebx, 2
cmp eax, 0xffffffff
jne 0x45d683
push ebx
call fcn.004ab8ea
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x220]
push edx
lea ecx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 0x224], ecx
call fcn.004ab372
add esp, 0x10
cmp eax, 0x50
ja case.0x45d7fb.1
movzx ecx, byte [eax + 0x45dcb8]
jmp dword [ecx*4 + 0x45dca8]
call fcn.0049d763
test edi, edi
jl 0x45d6db
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x45d6db
mov ecx, dword [ebp - 0x224]
mov dword [eax - 0xc], edi
mov edx, dword [esi]
xor eax, eax
mov word [ecx + edx], ax
jmp 0x45d6ff
push 0x80070057
call fcn.00421000
push 0x4d9c3c
call fcn.004ab8ea
add esp, 4
push eax
push 0x4d9c3c
mov ecx, esi
call fcn.00423f13
push ecx
mov byte [ebp - 4], 0xb
mov ebx, esp
mov dword [ebp - 0x230], esp
mov dword [ebp - 0x238], ebx
call fcn.0049d1fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45d72c
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, str.WinSxs
mov byte [ebp - 4], 0xc
test ecx, 0xffff0000
jne 0x45d82d
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a5121
mov edi, eax
test edi, edi
je 0x45d847
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45d847
push esi
push eax
push edi
call fcn.004216fe
mov edi, eax
add esp, 0xc
test edi, edi
je 0x45d847
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x45d7b5
push esi
mov ecx, ebx
call fcn.0042151d
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x224], edx
cmp eax, 0xffffffff
jne 0x45d7d2
push edi
call fcn.004ab8ea
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x220], ecx
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.004ab372
add esp, 0x10
cmp eax, 0x50
ja case.0x45d7fb.1
movzx edx, byte [eax + 0x45dd1c]
jmp dword [edx*4 + 0x45dd0c]
call fcn.0049d79b
test esi, esi
jl 0x45d6db
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x45d6db
mov edx, dword [ebp - 0x220]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x45d847
push str.WinSxs
call fcn.004ab8ea
add esp, 4
push eax
push str.WinSxs
mov ecx, ebx
call fcn.00423f13
mov byte [ebp - 4], 0xd
mov ebx, dword [ebp - 0x22c]
mov eax, dword [ebx + 4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x238], esp
mov esi, esp
push eax
call fcn.00423f84
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x228]
mov byte [ebp - 4], 9
call fcn.00466550
add esp, 0xc
mov byte [ebp - 4], 0xe
mov ecx, dword [eax]
mov esi, dword [ebx]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x45d8df
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x45d8d3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45d8d3
push eax
call fcn.00423f84
mov dword [ebp - 0x224], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x45d8c6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x224]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x45d8df
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.00423f13
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d905
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0x218]
push edx
call fcn.004ab8ea
mov ecx, dword [ebp - 0x22c]
add esp, 4
push eax
lea eax, [ebp - 0x218]
push eax
add ecx, 8
call fcn.00423f13
push ecx
mov ebx, esp
mov dword [ebp - 0x238], esp
mov dword [ebp - 0x230], ebx
call fcn.0049d1fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45d965
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
cmp dword [ebp - 0x21c], 0
mov byte [ebp - 4], 0xf
jne 0x45da65
mov ecx, 0x4d9c3c
movzx esi, cx
push esi
call fcn.004a5121
mov edi, eax
test edi, edi
je 0x45da7f
mov edx, esi
shr edx, 4
inc edx
movzx eax, dx
push 6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45da7f
push esi
push eax
push edi
call fcn.004216fe
mov edi, eax
add esp, 0xc
test edi, edi
je 0x45da7f
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x45d9ed
push esi
mov ecx, ebx
call fcn.0042151d
movzx eax, word [edi]
mov ecx, dword [ebx]
add edi, 2
mov dword [ebp - 0x21c], ecx
cmp eax, 0xffffffff
jne 0x45da0a
push edi
call fcn.004ab8ea
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x21c]
push edx
lea ecx, [esi + esi]
push edi
push ecx
push eax
mov dword [ebp - 0x228], ecx
call fcn.004ab372
add esp, 0x10
cmp eax, 0x50
ja case.0x45d7fb.1
movzx ecx, byte [eax + 0x45dd80]
jmp dword [ecx*4 + 0x45dd70]
test esi, esi
jl 0x45d6db
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x45d6db
mov ecx, dword [ebp - 0x228]
mov dword [eax - 0xc], esi
mov edx, dword [ebx]
xor eax, eax
mov word [ecx + edx], ax
jmp 0x45da7f
push 0x4d9c3c
call fcn.004ab8ea
add esp, 4
push eax
push 0x4d9c3c
mov ecx, ebx
call fcn.00423f13
push ecx
mov byte [ebp - 4], 0x10
mov ebx, esp
mov dword [ebp - 0x230], esp
mov dword [ebp - 0x234], ebx
call fcn.0049d1fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45daac
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, str.SysWOW64
mov byte [ebp - 4], 0x11
test ecx, 0xffff0000
jne 0x45dbac
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a5121
mov edi, eax
test edi, edi
je 0x45dbc6
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45dbc6
push esi
push eax
push edi
call fcn.004216fe
mov edi, eax
add esp, 0xc
test edi, edi
je 0x45dbc6
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x45db35
push esi
mov ecx, ebx
call fcn.0042151d
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x21c], edx
cmp eax, 0xffffffff
jne 0x45db52
push edi
call fcn.004ab8ea
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.004ab372
add esp, 0x10
cmp eax, 0x50
ja case.0x45d7fb.1
movzx edx, byte [eax + 0x45dde4]
jmp dword [edx*4 + 0x45ddd4]
test esi, esi
jl 0x45d6db
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x45d6db
mov edx, dword [ebp - 0x228]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x45dbc6
push str.SysWOW64
call fcn.004ab8ea
add esp, 4
push eax
push str.SysWOW64
mov ecx, ebx
call fcn.00423f13
mov byte [ebp - 4], 0x12
mov ebx, dword [ebp - 0x22c]
mov eax, dword [ebx + 4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x234], esp
mov esi, esp
push eax
call fcn.00423f84
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 9
call fcn.00466550
add esp, 0xc
mov byte [ebp - 4], 0x13
mov ecx, dword [eax]
mov esi, dword [ebx + 0xc]
lea edi, [ebx + 0xc]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x45dc62
cmp dword [esi + 0xc], 0
jl 0x45dc56
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45dc56
push eax
call fcn.00423f84
mov dword [ebp - 0x21c], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45dc49
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x21c]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x45dc62
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00423f13
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45dc88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.004aaf83
mov esp, ebp
pop ebp
ret