Function at 0x423f00
Capabilities:
Get common file path

Disassembly:
mov eax, 0x462ee3
call fcn.0043c280
sub esp, 0x308
push ebx
push esi
xor esi, esi
push edi
push esi
mov dword [ebp - 0x3c], ecx
push dword [ebp + 0xc]
mov ebx, 0x4675f0
mov edi, 0x4675e8
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0x9c], edi
call fcn.0040b0d5
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0xe4]
mov dword [ebp - 4], 1
push eax
call fcn.004257da
cmp dword [ebp - 0xd8], esi
mov byte [ebp - 4], 2
je 0x4246be
lea eax, [ebp - 0x3d]
push esi
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x74], edi
call fcn.0040b060
lea eax, [ebp - 0x3e]
push esi
push eax
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x10c], 0x468114
mov dword [ebp - 0xec], 0x46810c
call fcn.0040aeac
mov eax, str._CommonFilesFolder_
mov byte [ebp - 4], 4
mov ecx, eax
mov dword [ebp - 0x38], ebx
test ecx, ecx
mov dword [ebp - 0x18], edi
mov esi, 0x47e390
jne 0x423fc6
mov eax, esi
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0040b168
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x34]
neg eax
sbb eax, eax
mov byte [ebp - 4], 5
and eax, ecx
lea ecx, [ebp - 0xe0]
push eax
call fcn.0040cc69
neg eax
sbb al, al
lea ecx, [ebp - 0x38]
inc al
mov byte [ebp - 4], 4
mov byte [ebp + 0xf], al
call fcn.00405fc5
cmp byte [ebp + 0xf], 0
je 0x4240a5
lea eax, [ebp + 0x13]
push 1
push eax
push esi
lea ecx, [ebp - 0x68]
call fcn.0040b168
lea eax, [ebp + 0xf]
push 1
push eax
push str._CommonFilesFolder_
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0040b168
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 7
call fcn.0040b204
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.00405fc5
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00405fc5
lea eax, [ebp - 0x68]
push 1
push eax
call fcn.00424706
pop ecx
pop ecx
mov eax, dword [eax + 8]
mov byte [ebp - 4], 8
test eax, eax
jne 0x424086
mov eax, 0x467588
test eax, eax
je 0x424088
mov esi, eax
push esi
lea ecx, [ebp - 0x94]
call fcn.0040bc37
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
call fcn.0040125c
jmp 0x424673
mov eax, str._CommonFiles64Folder_
mov dword [ebp - 0x38], ebx
mov ecx, eax
mov dword [ebp - 0x18], edi
test ecx, ecx
jne 0x4240b8
mov eax, esi
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0040b168
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x34]
neg eax
sbb eax, eax
mov byte [ebp - 4], 9
and eax, ecx
lea ecx, [ebp - 0xe0]
push eax
call fcn.0040cc69
neg eax
sbb al, al
lea ecx, [ebp - 0x38]
inc al
mov byte [ebp - 4], 4
mov byte [ebp + 0xf], al
call fcn.00405fc5
cmp byte [ebp + 0xf], 0
je 0x42419d
mov ecx, dword [ebp + 0x10]
call fcn.0042487c
lea eax, [ebp + 0x13]
push 1
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.0040b168
lea eax, [ebp + 0xf]
push 1
push eax
push str._CommonFiles64Folder_
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
call fcn.0040b168
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040b204
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
call fcn.00405fc5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00405fc5
lea eax, [ebp - 0x68]
push SysReAllocString
push eax
call fcn.00424706
pop ecx
pop ecx
mov eax, dword [eax + 8]
mov byte [ebp - 4], 0xc
test eax, eax
jne 0x424185
mov eax, 0x467588
test eax, eax
jne 0x424185
mov eax, esi
push eax
lea ecx, [ebp - 0x94]
call fcn.0040bc37
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
jmp 0x42409b
mov eax, str._ProgramFilesFolder_
mov dword [ebp - 0x38], ebx
mov ecx, eax
mov dword [ebp - 0x18], edi
test ecx, ecx
jne 0x4241b0
mov eax, esi
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0040b168
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x34]
neg eax
sbb eax, eax
mov byte [ebp - 4], 0xd
and eax, ecx
lea ecx, [ebp - 0xe0]
push eax
call fcn.0040cc69
neg eax
sbb al, al
lea ecx, [ebp - 0x38]
inc al
mov byte [ebp - 4], 4
mov byte [ebp + 0xf], al
call fcn.00405fc5
cmp byte [ebp + 0xf], 0
je 0x42428a
lea eax, [ebp + 0x13]
push 1
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.0040b168
lea eax, [ebp + 0xf]
push 1
push eax
push str._ProgramFilesFolder_
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xe
call fcn.0040b168
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0xf
call fcn.0040b204
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xe
call fcn.00405fc5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00405fc5
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00424706
pop ecx
pop ecx
mov eax, dword [eax + 8]
mov byte [ebp - 4], 0x10
test eax, eax
jne 0x424272
mov eax, 0x467588
test eax, eax
jne 0x424272
mov eax, esi
push eax
lea ecx, [ebp - 0x94]
call fcn.0040bc37
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
jmp 0x42409b
mov eax, str._ProgramFiles64Folder_
mov dword [ebp - 0x38], ebx
mov ecx, eax
mov dword [ebp - 0x18], edi
test ecx, ecx
jne 0x42429d
mov eax, esi
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0040b168
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x34]
neg eax
sbb eax, eax
mov byte [ebp - 4], 0x11
and eax, ecx
lea ecx, [ebp - 0xe0]
push eax
call fcn.0040cc69
neg eax
sbb al, al
lea ecx, [ebp - 0x38]
inc al
mov byte [ebp - 4], 4
mov byte [ebp + 0xf], al
call fcn.00405fc5
cmp byte [ebp + 0xf], 0
je 0x424382
mov ecx, dword [ebp + 0x10]
call fcn.0042487c
lea eax, [ebp + 0x13]
push 1
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.0040b168
lea eax, [ebp + 0xf]
push 1
push eax
push str._ProgramFiles64Folder_
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x12
call fcn.0040b168
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x13
call fcn.0040b204
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x12
call fcn.00405fc5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00405fc5
lea eax, [ebp - 0x68]
push SysReAllocString
push eax
call fcn.00424706
pop ecx
pop ecx
mov eax, dword [eax + 8]
mov byte [ebp - 4], 0x14
test eax, eax
jne 0x42436a
mov eax, 0x467588
test eax, eax
jne 0x42436a
mov eax, esi
push eax
lea ecx, [ebp - 0x94]
call fcn.0040bc37
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
jmp 0x42409b
mov eax, str._WindowsFolder_
mov dword [ebp - 0x38], ebx
mov ecx, eax
mov dword [ebp - 0x18], edi
test ecx, ecx
jne 0x424395
mov eax, esi
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0040b168
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x34]
neg eax
sbb eax, eax
mov byte [ebp - 4], 0x15
and eax, ecx
lea ecx, [ebp - 0xe0]
push eax
call fcn.0040cc69
neg eax
sbb al, al
lea ecx, [ebp - 0x38]
inc al
mov byte [ebp - 4], 4
mov byte [ebp + 0xf], al
call fcn.00405fc5
cmp byte [ebp + 0xf], 0
je 0x424467
lea eax, [ebp - 0x314]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp + 0x13]
push 1
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.0040b168
lea eax, [ebp + 0xf]
push 1
push eax
push str._WindowsFolder_
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x16
call fcn.0040b168
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x17
call fcn.0040b204
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x16
call fcn.00405fc5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.00405fc5
lea eax, [ebp - 0x314]
test eax, eax
je 0x424456
lea esi, [ebp - 0x314]
push esi
lea ecx, [ebp - 0x94]
call fcn.0040bc37
jmp 0x424673
mov eax, str._SystemFolder_
mov dword [ebp - 0x38], ebx
mov ecx, eax
mov dword [ebp - 0x18], edi
test ecx, ecx
jne 0x42447a
mov eax, esi
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0040b168
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x34]
neg eax
sbb eax, eax
mov byte [ebp - 4], 0x18
and eax, ecx
lea ecx, [ebp - 0xe0]
push eax
call fcn.0040cc69
neg eax
sbb al, al
lea ecx, [ebp - 0x38]
inc al
mov byte [ebp - 4], 4
mov byte [ebp + 0xf], al
call fcn.00405fc5
cmp byte [ebp + 0xf], 0
je 0x424527
lea eax, [ebp - 0x314]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp + 0x13]
push 1
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.0040b168
lea eax, [ebp + 0xf]
push 1
push eax
push str._SystemFolder_
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x19
call fcn.0040b168
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x1a
call fcn.0040b204
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x19
call fcn.00405fc5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
jmp 0x424441
mov dword [ebp - 0x18], edi
mov edi, str._System64Folder_
mov eax, edi
mov dword [ebp - 0x38], ebx
test eax, eax
jne 0x42453a
mov eax, esi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0040b168
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x34]
neg eax
sbb eax, eax
mov byte [ebp - 4], 0x1b
and eax, ecx
lea ecx, [ebp - 0xe0]
push eax
call fcn.0040cc69
mov ebx, eax
lea ecx, [ebp - 0x38]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 4
inc bl
call fcn.00405fc5
test bl, bl
je 0x4245fc
mov ecx, dword [ebp + 0x10]
call fcn.0042487c
lea eax, [ebp - 0x314]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp + 0x13]
push 1
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.0040b168
lea eax, [ebp + 0xf]
push 1
push eax
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x1c
call fcn.0040b168
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x1d
call fcn.0040b204
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x1c
call fcn.00405fc5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00405fc5
lea eax, [ebp - 0x314]
lea ecx, [ebp - 0x94]
push eax
call fcn.0042606d
jmp 0x424673
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0xe4]
push eax
call fcn.00425859
test al, al
je 0x424673
lea eax, [ebp + 0x13]
push 1
push eax
push esi
lea ecx, [ebp - 0x68]
call fcn.0040b168
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xe4]
push eax
mov byte [ebp - 4], 0x1e
call fcn.0040b204
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00405fc5
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0042593e
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x1f
call fcn.004064f1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00405fc5
cmp dword [ebp - 0x88], 0
je 0x4246a0
lea eax, [ebp - 0xbc]
lea ecx, [ebp - 0x94]
push eax
call fcn.0040a570
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0xbc]
push eax
call fcn.004064f1
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 3
call fcn.0040125c
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.00405fc5
mov ecx, dword [ebp + 8]
push 1
pop esi
lea eax, [ebp - 0xbc]
push esi
push eax
call fcn.0040c0ad
mov dword [ebp - 0x6c], esi
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.00405fc5
and byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00405fc5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc