Function at 0x4588f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x4ce090]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, 0x104
mov eax, esi
jmp 0x458910
cmp byte [eax], 0
je 0x45891f
add eax, 1
sub ecx, 1
jne 0x458910
jmp 0x45893e
test ecx, ecx
je 0x45893e
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax]
mov eax, 0x4b8da4
call fcn.0040c710
push str._NT_SYMBOL_PATH
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
call fcn.004832c6
add esp, 0xc
test eax, eax
je 0x4589c1
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x45896f
add eax, 1
sub ecx, 1
jne 0x458960
jmp 0x45898e
test ecx, ecx
je 0x45898e
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax]
mov eax, 0x4b8db8
call fcn.0040c710
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x4589a4
add eax, 1
sub ecx, 1
jne 0x458995
jmp 0x4589c1
test ecx, ecx
je 0x4589c1
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax]
mov eax, dword [esp]
call fcn.0040c710
push str._NT_ALT_SYMBOL_PATH
lea edx, [esp + 8]
push edx
lea eax, [esp + 8]
push eax
call fcn.004832c6
add esp, 0xc
test eax, eax
je 0x458a44
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x4589f2
add eax, 1
sub ecx, 1
jne 0x4589e3
jmp 0x458a11
test ecx, ecx
je 0x458a11
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x4b8db8
call fcn.0040c710
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x458a27
add eax, 1
sub ecx, 1
jne 0x458a18
jmp 0x458a44
test ecx, ecx
je 0x458a44
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, dword [esp]
call fcn.0040c710
push str.SYSTEMROOT
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
call fcn.004832c6
add esp, 0xc
test eax, eax
je 0x458b88
mov ecx, 0x104
mov eax, esi
lea ebx, [ebx]
cmp byte [eax], 0
je 0x458a7f
add eax, 1
sub ecx, 1
jne 0x458a70
jmp 0x458a9e
test ecx, ecx
je 0x458a9e
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x4b8db8
call fcn.0040c710
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x458ab4
add eax, 1
sub ecx, 1
jne 0x458aa5
jmp 0x458ad1
test ecx, ecx
je 0x458ad1
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, dword [esp]
call fcn.0040c710
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x458ae7
add eax, 1
sub ecx, 1
jne 0x458ad8
jmp 0x458b06
test ecx, ecx
je 0x458b06
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x4b8db8
call fcn.0040c710
mov ecx, 0x104
mov eax, esi
lea ecx, [ecx]
cmp byte [eax], 0
je 0x458b1f
add eax, 1
sub ecx, 1
jne 0x458b10
jmp 0x458b3c
test ecx, ecx
je 0x458b3c
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, dword [esp]
call fcn.0040c710
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x458b65
add eax, 1
sub ecx, 1
jne 0x458b43
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00480d70
add esp, 0x110
ret
test ecx, ecx
je 0x458cc5
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, str.System32
jmp 0x458cc0
push 0x103
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x458cc5
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x458bb6
add eax, 1
sub ecx, 1
jne 0x458ba7
jmp 0x458bd5
test ecx, ecx
je 0x458bd5
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x4b8db8
call fcn.0040c710
mov ecx, 0x104
mov eax, esi
lea esp, [esp]
cmp byte [eax], 0
je 0x458bef
add eax, 1
sub ecx, 1
jne 0x458be0
jmp 0x458c0d
test ecx, ecx
je 0x458c0d
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
lea eax, [esp + 8]
call fcn.0040c710
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x458c23
add eax, 1
sub ecx, 1
jne 0x458c14
jmp 0x458c42
test ecx, ecx
je 0x458c42
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, 0x4b8db8
call fcn.0040c710
mov ecx, 0x104
mov eax, esi
lea esp, [esp]
cmp byte [eax], 0
je 0x458c5f
add eax, 1
sub ecx, 1
jne 0x458c50
jmp 0x458c7d
test ecx, ecx
je 0x458c7d
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
lea eax, [esp + 8]
call fcn.0040c710
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x458ca6
add eax, 1
sub ecx, 1
jne 0x458c84
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00480d70
add esp, 0x110
ret
test ecx, ecx
je 0x458cc5
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, str.System
call fcn.0040c710
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00480d70
add esp, 0x110
ret