Function at 0x474920
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x4f5160]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, 0x104
mov eax, esi
jmp 0x474940
cmp byte [eax], 0
je 0x47494f
add eax, 1
sub ecx, 1
jne 0x474940
jmp 0x47496e
test ecx, ecx
je 0x47496e
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax]
mov eax, 0x4dcbd8
call fcn.00402d00
push str._NT_SYMBOL_PATH
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
call fcn.004a0236
add esp, 0xc
test eax, eax
je 0x4749f1
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x47499f
add eax, 1
sub ecx, 1
jne 0x474990
jmp 0x4749be
test ecx, ecx
je 0x4749be
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax]
mov eax, 0x4dcbec
call fcn.00402d00
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x4749d4
add eax, 1
sub ecx, 1
jne 0x4749c5
jmp 0x4749f1
test ecx, ecx
je 0x4749f1
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax]
mov eax, dword [esp]
call fcn.00402d00
push str._NT_ALT_SYMBOL_PATH
lea edx, [esp + 8]
push edx
lea eax, [esp + 8]
push eax
call fcn.004a0236
add esp, 0xc
test eax, eax
je 0x474a74
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x474a22
add eax, 1
sub ecx, 1
jne 0x474a13
jmp 0x474a41
test ecx, ecx
je 0x474a41
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x4dcbec
call fcn.00402d00
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x474a57
add eax, 1
sub ecx, 1
jne 0x474a48
jmp 0x474a74
test ecx, ecx
je 0x474a74
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, dword [esp]
call fcn.00402d00
push str.SYSTEMROOT
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
call fcn.004a0236
add esp, 0xc
test eax, eax
je 0x474bb8
mov ecx, 0x104
mov eax, esi
lea ebx, [ebx]
cmp byte [eax], 0
je 0x474aaf
add eax, 1
sub ecx, 1
jne 0x474aa0
jmp 0x474ace
test ecx, ecx
je 0x474ace
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x4dcbec
call fcn.00402d00
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x474ae4
add eax, 1
sub ecx, 1
jne 0x474ad5
jmp 0x474b01
test ecx, ecx
je 0x474b01
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, dword [esp]
call fcn.00402d00
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x474b17
add eax, 1
sub ecx, 1
jne 0x474b08
jmp 0x474b36
test ecx, ecx
je 0x474b36
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x4dcbec
call fcn.00402d00
mov ecx, 0x104
mov eax, esi
lea ecx, [ecx]
cmp byte [eax], 0
je 0x474b4f
add eax, 1
sub ecx, 1
jne 0x474b40
jmp 0x474b6c
test ecx, ecx
je 0x474b6c
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, dword [esp]
call fcn.00402d00
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x474b95
add eax, 1
sub ecx, 1
jne 0x474b73
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0049d2c8
add esp, 0x110
ret
test ecx, ecx
je 0x474cf5
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, str.System32
jmp 0x474cf0
push 0x103
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x474cf5
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x474be6
add eax, 1
sub ecx, 1
jne 0x474bd7
jmp 0x474c05
test ecx, ecx
je 0x474c05
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x4dcbec
call fcn.00402d00
mov ecx, 0x104
mov eax, esi
lea esp, [esp]
cmp byte [eax], 0
je 0x474c1f
add eax, 1
sub ecx, 1
jne 0x474c10
jmp 0x474c3d
test ecx, ecx
je 0x474c3d
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
lea eax, [esp + 8]
call fcn.00402d00
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x474c53
add eax, 1
sub ecx, 1
jne 0x474c44
jmp 0x474c72
test ecx, ecx
je 0x474c72
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x4dcbec
call fcn.00402d00
mov ecx, 0x104
mov eax, esi
lea esp, [esp]
cmp byte [eax], 0
je 0x474c8f
add eax, 1
sub ecx, 1
jne 0x474c80
jmp 0x474cad
test ecx, ecx
je 0x474cad
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
lea eax, [esp + 8]
call fcn.00402d00
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x474cd6
add eax, 1
sub ecx, 1
jne 0x474cb4
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0049d2c8
add esp, 0x110
ret
test ecx, ecx
je 0x474cf5
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, str.System
call fcn.00402d00
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0049d2c8
add esp, 0x110
ret