Function at 0x4062f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4970de
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x4c1280]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c1280]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x230]
xor edi, edi
test byte [0x4c4efc], 1
mov ebx, ecx
jne 0x406363
or dword [0x4c4efc], 1
push 0x11c
push edi
push 0x4c4de0
call fcn.00472990
push 0x499790
call fcn.004762ba
add esp, 0x10
test byte [0x4c4efc], 2
jne 0x40638c
or dword [0x4c4efc], 2
push edi
push edi
push ebp
mov ecx, 0x4c4de0
mov dword [esp + 0x234], edi
call fcn.0040aee0
mov dword [0x4c4dd8], eax
test byte [0x4c4efc], 4
jne 0x4063c6
or dword [0x4c4efc], 4
push 0x104
push 0x4c4bd0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x104
push 0x4c4bd0
mov esi, eax
call fcn.0047a5d4
add esp, 8
mov dword [0x4c4bc8], esi
movzx eax, word [ebx]
cmp ax, 0x41
jb 0x4063e6
cmp ax, 0x5a
ja 0x4063e6
movzx edx, word [0x4c4bd0]
movzx ecx, ax
add ecx, 0x20
cmp ecx, edx
jmp 0x4063ed
cmp ax, word [0x4c4bd0]
jne 0x406857
xor edx, edx
test ax, ax
je 0x406421
xor ecx, ecx
movzx eax, ax
nop
cmp ax, 0x41
jb 0x40640f
cmp ax, 0x5a
ja 0x40640f
add eax, 0x20
inc edx
mov word [esp + ecx + 0x14], ax
lea ecx, [edx + edx]
movzx eax, word [ecx + ebx]
test ax, ax
jne 0x406400
mov ecx, dword [0x4c4bc8]
xor eax, eax
push ecx
mov word [esp + edx*2 + 0x18], ax
lea edx, [esp + 0x18]
push 0x4c4bd0
push edx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
jne 0x406485
mov esi, dword [0x4c4bc8]
push 7
lea esi, [esp + esi*2 + 0x1a]
push str.winsxs_
push esi
call fcn.0047a3d8
add esp, 0xc
test eax, eax
je 0x40647b
push 9
push str.assembly_
push esi
call fcn.0047a3d8
add esp, 0xc
test eax, eax
jne 0x406852
mov edi, 2
jmp 0x406857
mov eax, dword [0x4c4dd8]
cmp eax, 5
jge 0x406494
cmp eax, 0xd
jg 0x4064b1
push 5
lea eax, [esp + 0x1e]
push str.boot_
push eax
call fcn.0047a3d8
add esp, 0xc
test eax, eax
je 0x40647b
mov eax, dword [0x4c4dd8]
cmp eax, 5
jl 0x406561
push 0xc
lea ecx, [esp + 0x1e]
push str.programdata_
push ecx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
jne 0x4064d8
lea esi, [esp + 0x32]
jmp 0x406510
push 6
lea edx, [esp + 0x1e]
push str.users_
push edx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
jne 0x406561
push 0xa
lea eax, [esp + 0x2a]
push str.all_users_
push eax
call fcn.0047a3d8
add esp, 0xc
test eax, eax
jne 0x406857
lea esi, [esp + 0x3a]
push 0xa
push str.microsoft_
push esi
call fcn.0047a3d8
add esp, 0xc
test eax, eax
jne 0x406857
push 0x11
add esi, 0x14
push str.windows_defender_
push esi
call fcn.0047a3d8
add esp, 0xc
test eax, eax
je 0x406557
push 0xc
push str.identitycrl_
push esi
call fcn.0047a3d8
add esp, 0xc
test eax, eax
jne 0x406857
mov edi, 2
jmp 0x406857
push 0xe
lea ecx, [esp + 0x1e]
push str.program_files_
push ecx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
jne 0x40657f
lea ebx, [esp + 0x36]
jmp 0x4065a9
cmp dword [ebp], 0
je 0x406857
push 0x14
lea edx, [esp + 0x1e]
push str.program_files__x86__
push edx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
jne 0x406857
lea ebx, [esp + 0x42]
push 0xd
push str.common_files_
push ebx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
mov eax, dword [0x4c4dd8]
jne 0x4066a9
add ebx, 0x1a
cmp eax, 2
jne 0x4065fe
xor edi, edi
mov esi, 0x4c2a1c
movsx eax, byte [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push ebx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
je 0x406852
add esi, 8
cmp esi, 0x4c2a3c
jl 0x4065d5
jmp 0x406857
cmp eax, 3
je 0x406679
cmp eax, 4
je 0x406679
cmp eax, 5
je 0x406679
cmp eax, 7
je 0x406679
cmp eax, 6
je 0x406679
cmp eax, 8
je 0x406679
cmp eax, 1
je 0x406643
cmp eax, 0xa
je 0x406643
cmp eax, 0xc
je 0x406643
cmp eax, 9
je 0x406643
cmp eax, 0xb
je 0x406643
cmp eax, 0xd
je 0x406643
cmp eax, 0xe
jne 0x406852
xor edi, edi
mov esi, 0x4c2a54
lea ebx, [ebx]
movsx edx, byte [esi + 4]
mov eax, dword [esi]
push edx
push eax
push ebx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
je 0x406852
add esi, 8
cmp esi, 0x4c2a64
jl 0x406650
jmp 0x406857
xor edi, edi
mov esi, 0x4c2a3c
movsx ecx, byte [esi + 4]
mov edx, dword [esi]
push ecx
push edx
push ebx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
je 0x406852
add esi, 8
cmp esi, 0x4c2a54
jl 0x406680
jmp 0x406857
cmp eax, 1
jne 0x4066de
xor edi, edi
mov esi, 0x4c2a64
movsx eax, byte [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push ebx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
je 0x406852
add esi, 8
cmp esi, 0x4c2a94
jl 0x4066b5
jmp 0x406857
cmp eax, 2
jne 0x406719
xor edi, edi
mov esi, 0x4c2a98
lea ebx, [ebx]
movsx edx, byte [esi + 4]
mov eax, dword [esi]
push edx
push eax
push ebx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
je 0x406852
add esi, 8
cmp esi, 0x4c2ad8
jl 0x4066f0
jmp 0x406857
cmp eax, 3
je 0x406827
cmp eax, 4
je 0x406827
cmp eax, 5
je 0x4067fe
cmp eax, 7
je 0x4067fe
cmp eax, 9
je 0x4067d1
cmp eax, 0xb
je 0x4067d1
cmp eax, 6
je 0x4067a1
cmp eax, 8
je 0x4067a1
cmp eax, 0xa
je 0x4067a1
cmp eax, 0xc
je 0x4067a1
cmp eax, 0xd
je 0x406771
cmp eax, 0xe
jne 0x406852
xor edi, edi
mov esi, 0x4c2bc8
movsx ecx, byte [esi + 4]
mov edx, dword [esi]
push ecx
push edx
push ebx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
je 0x406852
add esi, 8
cmp esi, 0x4c2c28
jl 0x406778
jmp 0x406857
xor edi, edi
mov esi, 0x4c2bb0
movsx eax, byte [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push ebx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
je 0x406852
add esi, 8
cmp esi, 0x4c2bc8
jl 0x4067a8
jmp 0x406857
xor edi, edi
mov esi, 0x4c2b60
movsx edx, byte [esi + 4]
mov eax, dword [esi]
push edx
push eax
push ebx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
je 0x406852
add esi, 8
cmp esi, 0x4c2bb0
jl 0x4067d8
jmp 0x406857
xor edi, edi
mov esi, 0x4c2b00
movsx ecx, byte [esi + 4]
mov edx, dword [esi]
push ecx
push edx
push ebx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
je 0x406852
add esi, 8
cmp esi, 0x4c2b60
jl 0x406805
jmp 0x406857
xor edi, edi
mov esi, 0x4c2ad8
mov edi, edi
movsx eax, byte [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push ebx
call fcn.0047a3d8
add esp, 0xc
test eax, eax
je 0x406852
add esi, 8
cmp esi, 0x4c2b00
jl 0x406830
jmp 0x406857
mov edi, 1
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00472a79
add esp, 0x218
ret 4