Function at 0x42be90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x4a8228]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, 0x104
mov eax, esi
jmp 0x42beb0
cmp byte [eax], 0
je 0x42bebf
add eax, 1
sub ecx, 1
jne 0x42beb0
jmp 0x42bede
test ecx, ecx
je 0x42bede
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax]
mov eax, 0x495c10
call fcn.00404df0
push str._NT_SYMBOL_PATH
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00463e7d
add esp, 0xc
test eax, eax
je 0x42bf61
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x42bf0f
add eax, 1
sub ecx, 1
jne 0x42bf00
jmp 0x42bf2e
test ecx, ecx
je 0x42bf2e
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax]
mov eax, 0x495c24
call fcn.00404df0
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x42bf44
add eax, 1
sub ecx, 1
jne 0x42bf35
jmp 0x42bf61
test ecx, ecx
je 0x42bf61
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax]
mov eax, dword [esp]
call fcn.00404df0
push str._NT_ALT_SYMBOL_PATH
lea edx, [esp + 8]
push edx
lea eax, [esp + 8]
push eax
call fcn.00463e7d
add esp, 0xc
test eax, eax
je 0x42bfe4
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x42bf92
add eax, 1
sub ecx, 1
jne 0x42bf83
jmp 0x42bfb1
test ecx, ecx
je 0x42bfb1
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x495c24
call fcn.00404df0
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x42bfc7
add eax, 1
sub ecx, 1
jne 0x42bfb8
jmp 0x42bfe4
test ecx, ecx
je 0x42bfe4
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, dword [esp]
call fcn.00404df0
push str.SYSTEMROOT
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
call fcn.00463e7d
add esp, 0xc
test eax, eax
je 0x42c128
mov ecx, 0x104
mov eax, esi
lea ebx, [ebx]
cmp byte [eax], 0
je 0x42c01f
add eax, 1
sub ecx, 1
jne 0x42c010
jmp 0x42c03e
test ecx, ecx
je 0x42c03e
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x495c24
call fcn.00404df0
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x42c054
add eax, 1
sub ecx, 1
jne 0x42c045
jmp 0x42c071
test ecx, ecx
je 0x42c071
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, dword [esp]
call fcn.00404df0
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x42c087
add eax, 1
sub ecx, 1
jne 0x42c078
jmp 0x42c0a6
test ecx, ecx
je 0x42c0a6
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x495c24
call fcn.00404df0
mov ecx, 0x104
mov eax, esi
lea ecx, [ecx]
cmp byte [eax], 0
je 0x42c0bf
add eax, 1
sub ecx, 1
jne 0x42c0b0
jmp 0x42c0dc
test ecx, ecx
je 0x42c0dc
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, dword [esp]
call fcn.00404df0
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x42c105
add eax, 1
sub ecx, 1
jne 0x42c0e3
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004626c8
add esp, 0x110
ret
test ecx, ecx
je 0x42c265
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, str.System32
jmp 0x42c260
push 0x103
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x42c265
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x42c156
add eax, 1
sub ecx, 1
jne 0x42c147
jmp 0x42c175
test ecx, ecx
je 0x42c175
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x495c24
call fcn.00404df0
mov ecx, 0x104
mov eax, esi
lea esp, [esp]
cmp byte [eax], 0
je 0x42c18f
add eax, 1
sub ecx, 1
jne 0x42c180
jmp 0x42c1ad
test ecx, ecx
je 0x42c1ad
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
lea eax, [esp + 8]
call fcn.00404df0
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x42c1c3
add eax, 1
sub ecx, 1
jne 0x42c1b4
jmp 0x42c1e2
test ecx, ecx
je 0x42c1e2
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x495c24
call fcn.00404df0
mov ecx, 0x104
mov eax, esi
lea esp, [esp]
cmp byte [eax], 0
je 0x42c1ff
add eax, 1
sub ecx, 1
jne 0x42c1f0
jmp 0x42c21d
test ecx, ecx
je 0x42c21d
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
lea eax, [esp + 8]
call fcn.00404df0
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x42c246
add eax, 1
sub ecx, 1
jne 0x42c224
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004626c8
add esp, 0x110
ret
test ecx, ecx
je 0x42c265
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, str.System
call fcn.00404df0
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004626c8
add esp, 0x110
ret